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
{{ message }}
Repository navigation
executeCommand don't follow promise ordering to execute #132446
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issueshelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
@iamwwc what is the exact reason that you cannot use "Restart" to do the "Stop"/"Start" sequence?
"Restart" in Rust will use previous binary. But I have changed my codes already, so I want to stop first, then start again, extension(lldb) will first recompile my codes.
It's important for Non-interpreter language. Javascript's "Restart" will re-interpreter codes, so it will always use latest codes. But in others, possibly not
But after pressed F4, 'xxxxx' is already running. Do you want to start another instance? dialog showed. I guess stoped state from one process don't sync to another process. It I delay some second, there no dialog showing.
Works fine for me, debugging in node, even with no delay. If you still see it, it could be an issue on the debug adapter's end? What are you debugging? Consider filing an issue on the debug extension.
For nodejs, If we have the prebuild task take 10s to finished in tasks.json. Before vscode's toolbar become to yellow(maybe It's BeforeDebuggerSessionStart phase), press F4 will cause confirm restart dialog showing up
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issueshelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
Activity
taikulawo commentedon Nov 15, 2021
Andre Weinand (@weinand) Does this issue has some result? 😃
weinand commentedon Nov 15, 2021
@iamwwc what is the exact reason that you cannot use "Restart" to do the "Stop"/"Start" sequence?
taikulawo commentedon Nov 15, 2021
"Restart" in Rust will use previous binary. But I have changed my codes already, so I want to stop first, then start again, extension(lldb) will first recompile my codes.
taikulawo commentedon Nov 15, 2021
It's important for Non-interpreter language. Javascript's "Restart" will re-interpreter codes, so it will always use latest codes. But in others, possibly not
taikulawo commentedon Nov 15, 2021
Currently I'm using https://marketplace.visualstudio.com/items?itemName=geddski.macros, executing
workbench.action.debug.stop,workbench.action.debug.startsequentially. Butsettings.json
shortcuts
{ "key": "f4", "command": "macros.restart", "when": "inDebugMode" },But after pressed F4,
'xxxxx' is already running. Do you want to start another instance?dialog showed. I guessstopedstate from one process don't sync to another process. It I delay some second, there no dialog showing.Please see this #10534 (comment)
taikulawo commentedon Nov 15, 2021
Andre Weinand (@weinand) In clion(a jetbrains rust IDE), there are option showing that we can disable dialog forever.
After clicking
stop and rerun, recompile is the first step.taikulawo commentedon Nov 16, 2021
Andre Weinand (@weinand) Does have any progress?
taikulawo commentedon Nov 19, 2021
Andre Weinand (@weinand) 😃 Does have some result?
roblourens commentedon Oct 19, 2022
There is an await missing here:
vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.ts
Line 575 in d2114a4
But I'm not sure whether that's enough to fix this issue. Would take a PR for it if someone else has the time to debug and investigate.
4 remaining items
Add missing await
Add missing await (#169301)
taikulawo commentedon Jan 14, 2023
roblourens I can still reproduce this bug in insider
roblourens commentedon Jan 17, 2023
Works fine for me, debugging in node, even with no delay. If you still see it, it could be an issue on the debug adapter's end? What are you debugging? Consider filing an issue on the debug extension.
taikulawo commentedon Jan 25, 2023
For nodejs, If we have the prebuild task take 10s to finished in
tasks.json. Before vscode's toolbar become to yellow(maybe It's BeforeDebuggerSessionStart phase), press F4 will cause confirm restart dialog showing uproblourens commentedon Jan 25, 2023
Ok but that will be sort of a different issue, if you open another issue I can take a look.
taikulawo commentedon Jan 25, 2023
roblourens Ok #172346