Line by line debugging async scenarios #2963
Unanswered
mrcjbf0001
asked this question in
Q&A
Replies: 1 comment
-
You need to add await to every line it's in the documentation here I believe: http://xt1.org/codecept/debugging/ at the bottom of this page :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking for the best way, or any possible way really, to step through an async scenario line by line. Right now I can set break points, open a gitbash javascript debugger terminal from within vs code, and launch my test scenario with the debugger attached. When I step over a line or continue the debugger to the next break point, the actions are not executed in the browser, except for console.log statements. once every line in the scenario has been executed, the actions will all happen in sequence in the browser. I am used to debugging java code where each line is executed when you click the step over button from the debugger.
this question was asked in 2018, and the solution given was to add the await command before each line. This does work, but does anyone know of a way to do it without adding the await command?
#1144
Beta Was this translation helpful? Give feedback.
All reactions