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
VSCode added a new break point type called "Wait for Breakpoint" which basically only will be stopped if the debugger is stopped at selected break point first.
Steps:
User sets a breakpoint in test.js file at line 10
User right clicks on the number line and select Triggered Breakpoint in test.js file at line 20
User select "Wait for Breakpoint" from the first select menu & select the breakpoint at line 10 in the 2nd select menu
Run the debugger
When running, debugger will not stop at line 20 until line the debugger stops at the line 10 debug point.
for(i=0;i<10;i++){if(i==5){console.log('first breakpoint')}console.log('second breakpoint')// ^^^ here we set the "Wait for Breakpoint" type breakpoint. Until the debugger stops at// `first breakpoint` debugger will not stop at the `second breakpoint`}
Possible Solutions
No response
Considered Alternatives
No response
The text was updated successfully, but these errors were encountered:
Some kind of dependent breakpoint support is on the roadmap but I'm not sure yet how it should work like from a UI/interaction point of view.
Intellij has the feature as well, but the couple of times I could've used it I ended up manually setting the first breakpoint, wait until it is hit, and then set the other breakpoint. In part because the effort to set it up was similar and I'm not sure how it can be improved. A thought I had was to allow attaching arbitrary actions to a breakpoint - including macros. But that still doesn't make it much better than setting the second breakpoint manually after the first one was hit.
Problem Statement
VSCode added a new break point type called "Wait for Breakpoint" which basically only will be stopped if the debugger is stopped at selected break point first.
Steps:
test.js
file at line10
Triggered Breakpoint
intest.js
file at line20
When running, debugger will not stop at line 20 until line the debugger stops at the line 10 debug point.
Possible Solutions
No response
Considered Alternatives
No response
The text was updated successfully, but these errors were encountered: