You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to debug a godog scenario using breakpoints with VSCode? I could not find a way to do it, and I wonder if anybody had luck in doing that.
what prevents you from running the code as regular go tests? just open the *_test.go file and press F5. everything should work.
You can place regular breakpoints in the implementation.
Activity
MetalBlueberry commentedon Jul 13, 2020
what prevents you from running the code as regular go tests? just open the *_test.go file and press F5. everything should work.
You can place regular breakpoints in the implementation.
yuseferi commentedon Nov 4, 2020
how about the goland?
because there is no main func there, the run is not activated by default.
how can I debug godog in goland?
paschelino commentedon Apr 15, 2021
And how would you do this with delve?
stevecager commentedon May 13, 2022
I can run a scenario in debug mode in Goland using this run config:
vearutop commentedon May 20, 2022
You can add a regular test that invokes godog and then use your IDE capabilities to run/debug tests.
waytocypress commentedon Jul 14, 2022
set environment as GODOG_DEUG= true in the debug configuration and add break points where ever you want
witgaw commentedon Nov 24, 2022
Just add a debug configuration similar to that to your
launch.json:You can add a line number where the
Scenario:is defined to debug a single scenario from file, e.g.your_feature_test.feature:102