-
Notifications
You must be signed in to change notification settings - Fork 13
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
[BUG] Cannot attach Debbuger #875
Comments
@orlando320, so attaching the debugger works once, but subsequent tentatives fail to attach unless you restart Unity? Could you modify your
And send the resulting log file to [email protected]? Thank you! |
I'm also seeing an error very similar to this, where the debugger fails to attach. When I attempt to connect the debugger, VS Code appears to start a debug session, and shows the debug controls (the floating continue/step/disconnect pane). The Debug Console appears, but no text appears in it. Unity's 'Debug Mode' icon turns blue, indicating that it believes a debugger is attached. When I click the Disconnect button, the debug session ends in VS Code, and Unity's 'Debug Mode' icon turns yellow, indicating that the debugger has disconnected. My only difference from @orlando320 is that Unity is not locking up - it continues to operate normally, as though the debugger had successfully attached. My steps:
I've sent a copy of my debug log to [email protected]. My environment:
I've also tested this with the previous version of the VS Code extensions, with the exact same steps results:
|
Closing this as we haven't heard in 3 weeks. Feel free to reopen or send the logs as requested for further investigation. Thanks! |
Hello,
|
I have the same problem with my everyday project that I have been working on for over a year. Since some of the latest versions of VSCode, the debugger stops connecting at some point. Only a restart of VSCode and Unity fixes the problem. Until it reappears. I actually see the problem every day. But even after a few experiments, I have not yet been able to reproduce it for sure. My guess is that it could be caused by a complex mix of OpenVPN, Tailscale, multiple Unity editors and VSCode editors connected for debugging in conjunction with Windows sleep mode (Supend-To-Disk) Output if it fails:
|
For the even restarting both VSCode and Unity does nothing, Unity is locked if I start debugging ! |
I am also running into this issue. Versions:
|
Versions: Unity 2023.3.22f1 |
Describe the Issue
the only way I can attached the debugger is if I completely close vscode and unity then open them both back up but then when I do unity freezes until I release it from the debugger. When it doesn't connect I get this error "Failed to attach debugger to 127.0.0.1:56200
Steps To Reproduce
No response
Expected Behavior
Environment Information
I am running unity 2022.3.1 on Windows 11 in VSCODE (ver 1.85.2)
The text was updated successfully, but these errors were encountered: