-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
F10 and F11 should start debugging with stopAtEntry:true #49855
Comments
I support the request: enable starting a debugging session with F10, that positions the "instruction cursor" at the first instruction of the script |
@isidorn, do I get this right? you removed this from the backlog? |
I like this idea and we plan to add this soon thus I am assigning this to On-Deck |
@isidorn "stopAtEntry" is a private attribute of some debug extensions. It will be difficult to support that generically (if we want to avoid ugly heuristics). |
@weinand good point, I forgot that "stopAtEntry" is not generic.
Am I missing something? |
Sounds good. A prototype would be a good proof of concept. |
I have introduce a new context key in vscode fyi @roblourens |
I'm a little worried about this global variable in the config provider: microsoft/vscode-node-debug@0f004a2#diff-35cf5c034aecdc798ffe64808bf07609R18 You could have debugging fail to start on vscode's end for some reason so the next call to Is there any way to get rid of that? Like if we could pass some override config props to executeCommand? Or props that get passed through to resolveDebugConfiguration? |
@roblourens anything that passes through vscode does not really make sense since vscode is unaware of |
It looks like the current Action implementation doesn't support taking arguments, to fix this we should convert off the deprecated |
@alexr00 Make sure you have a Node.js configuration currently selected in the "run and debug" menu |
I realized I forgot to bump the builtin version of the old node-debug when I changed the setting, which is why you see a duplicate keybinding there. For me it still works, but that might cause issues c881465 |
Ah forgot to include by debug config:
That config is selected in the debug viewlet. |
Hm, okay. This works for me on both OSX and Windows. If this doesn't work in tomorrow's Insiders for you, please let me know and we can debug together when you have time |
Steps:
|
Tyler tried to verify and hit the same issue. The I think my previous fix was not really correct -- newer, better, one coming. |
Works great! |
in visual studio (not vscode) you can start debugging and stop at the first line of code by pressing the
step over
orstep into
keys. this is distinct from hitting thestart debugging
key which doesn't stop atmain
(or wherever). it's incredibly useful to easily choose whether or not to stop at the first line of code, especially for console apps.can we get similar functionality added to vscode? it's a pain to have to switch debug configurations, or edit the
stopAtEntry
setting just to do this.The text was updated successfully, but these errors were encountered: