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
weinand opened this issue
Aug 27, 2018
· 3 comments
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
When testing this I noticed that after running once through the return TPromise.as(null); the next debug session (for the same debug config) would result in the error message "Debug session xxxx already running".
The text was updated successfully, but these errors were encountered:
weinand
added
bug
Issue identified by VS Code Team member as probable bug
debug
Debug viewlet, configurations, breakpoints, adapter issues
labels
Aug 27, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
In the course of fixing #49403 I was trying to supress an attach timeout message in this code: https://github.com/Microsoft/vscode/blob/e8b3a72e8306105a4d559d2e85b36cec13dcb10d/src/vs/workbench/parts/debug/electron-browser/debugService.ts#L696-L725
First I did something similar as this https://github.com/Microsoft/vscode/blob/e8b3a72e8306105a4d559d2e85b36cec13dcb10d/src/vs/workbench/parts/debug/electron-browser/debugService.ts#L696-L699
When testing this I noticed that after running once through the
return TPromise.as(null);
the next debug session (for the same debug config) would result in the error message "Debug session xxxx already running".Moving my code to the very end of that code section fixed the problem for me:
https://github.com/Microsoft/vscode/blob/e8b3a72e8306105a4d559d2e85b36cec13dcb10d/src/vs/workbench/parts/debug/electron-browser/debugService.ts#L720-L724
So I suspect that the code https://github.com/Microsoft/vscode/blob/e8b3a72e8306105a4d559d2e85b36cec13dcb10d/src/vs/workbench/parts/debug/electron-browser/debugService.ts#L709-L713 is needed to clean all traces of a debug session.
Since there was already some issue with a spurious "Debug session already running" error, please make sure that https://github.com/Microsoft/vscode/blob/e8b3a72e8306105a4d559d2e85b36cec13dcb10d/src/vs/workbench/parts/debug/electron-browser/debugService.ts#L696-L699 really works correctly (may be by just moving it down).
The text was updated successfully, but these errors were encountered: