Skip to content
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

"Debug session already running" error #57255

Closed
weinand opened this issue Aug 27, 2018 · 3 comments
Closed

"Debug session already running" error #57255

weinand opened this issue Aug 27, 2018 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Milestone

Comments

@weinand
Copy link
Contributor

weinand commented Aug 27, 2018

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).

@weinand weinand added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Aug 27, 2018
@weinand weinand added this to the August 2018 milestone Aug 27, 2018
@octref octref added the verification-steps-needed Steps to verify are needed for verification label Aug 30, 2018
@octref
Copy link
Contributor

octref commented Aug 30, 2018

I'm not sure how to verify this. Don't quite have the setup for #54378 either.
@weinand Can you code-review verify this issue? Thanks.

@weinand
Copy link
Contributor Author

weinand commented Aug 31, 2018

Yes, I've verified and code-reviewed this.

@DanTup
Copy link
Contributor

DanTup commented Sep 6, 2018

There's a report of this issue still occurring in v1.27.0 here -> #54378 (comment)

Not sure if it's expected to be gone in that version.

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants