-
Notifications
You must be signed in to change notification settings - Fork 511
Debugger throws error when launched before Editor Services finishes initializing #277
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
Comments
Although, I still git the error I mentioned occasionally. It seems the times the bar just goes from blue to orange to blue again the debugger is running. It appears there are two things that I didn't expect.
So,
|
Hey @duffwv, I checked out your logs, can you turn on verbose logging and capture logs again? Regarding breakpoints on an empty line, this is not allowed by PowerShell. You can't set breakpoints on an empty line in the PowerShell ISE either. The output issue you reported is a known issue which will be addressed in a future update. Since it seems to be happening for a lot of people recently I'm going to raise it's priority and try to get it fixed in the next release. |
Similar issues here. OS Name: Microsoft Windows 10 Pro (10.0.10586 Build 10586) I've had the "Debug adapter process has terminated unexpectedly" error once or twice. However, more annoyingly, nothing is written to the debug console unless the code hits a breakpoint. I'm using this simple test script:
If I run it without any breakpoints, then there is no output. If I put a breakpoint on Here are the logs from three separate runs:
|
Sorry I missed the verbose thing. After eliminating my confusion by the breakpoint and final output things. I noticed some consistency regarding the error. It seems to occur the first time I try to debug, afterwards it works. I haven't used it long enough to see if it occurs over time. I've included the logs with and without A/V and firewall on as the error occured the first time and then I quit. I've also included the logs after running it three times, first time it errors and the second and third it works. I dug thru the settings and noticed: "powershell.developer.editorServicesWaitForDebugger": false and the name seemed somewhat relevant, so I set it to true and restarted vscode. It didn't work, but I've also attached the logs with three runs with it set to true. |
After that it occured to me to try to open vscode and wait. If I open vscode and immediately start to debug it fails the first time. I opened vscode and waited a full 30 seconds and ran it and it worked. Seems to have a significant delay between opening vscode and the debugger service on my system. |
Thanks a lot for putting those together! I'll take a look and let you know what I find. And thank you too, @thirdwaffle! |
Still waiting to hear back from the VS Code team for a way to display a specific error from the debug adapter at startup (microsoft/vscode-debugadapter-node#57). I might end up fixing this for 0.8.0 along with related issue #281. |
Closing as defunct |
The debugger doesn't seem to work. Either the bar on the bottom of vscode turns from blue to orange momentarily, and the debugger stops. No variable information, ignores breakpoints, no output to the console. Or I get the error: "Debug adapter process has terminated unexpectedly"
System Details
Attached Logs
Attached logs first with anti-virus and firewall on as per company settings. Then I deleted the logs, turned off the antivirus and firewall and ran again and attached those logs.
logs.zip
The text was updated successfully, but these errors were encountered: