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
Today I've noticed an issue where a debug adapter terminates immediately when I try to debug one of my scripts. Interestingly, the popups regarding termination repeats twice, and if you look into the 'Developer Tools' console there's this:
messageService.ts:126Debug adapter process has terminated unexpectedlye.doShow @ messageService.ts:126
Neither EditorServices.log nor vscode-powershell.log logs for the session have any mention of the issue.
While trying to figure out a reliable repro, I discovered that this issue occurs if VSCode is started and debugging is initiated while PowerShell is being loaded:
If I wait for loading to finish and start debugging afterwards, all goes fine. Is it possible to add some logic so that VSCode would wait for PowerShell to finish loading instead of crashing?
Thanks!
Attached Logs
I haven't attached the logs as there are no errors and it has some sensitive data. If needed, I can send it over the email.
The text was updated successfully, but these errors were encountered:
Thanks @Glober777! This is part of the reason why I added the loading indicator, to make it more obvious when the extension hasn't finished loading yet. The missing piece here is some clear indication from the debugger that the PowerShell extension is still loading. Unfortunately they don't give me a way to return an explicit error message (or I haven't found a way yet, at least). I'll keep looking into it!
daviwil
changed the title
Debug adapter process has terminated unexpectedly (if debugging is started before PowerShell is loaded)
Debugger should give explicit error message if run when PowerShell extension isn't fully loaded yet
Jan 3, 2017
daviwil
changed the title
Debugger should give explicit error message if run when PowerShell extension isn't fully loaded yet
Debugger should retry until extension loads or give error when it times out
Jan 12, 2017
System Details
$PSVersionTable
:Issue Description
Hi,
Today I've noticed an issue where a debug adapter terminates immediately when I try to debug one of my scripts. Interestingly, the popups regarding termination repeats twice, and if you look into the 'Developer Tools' console there's this:
messageService.ts:126Debug adapter process has terminated unexpectedlye.doShow @ messageService.ts:126
Neither EditorServices.log nor vscode-powershell.log logs for the session have any mention of the issue.
While trying to figure out a reliable repro, I discovered that this issue occurs if VSCode is started and debugging is initiated while PowerShell is being loaded:

If I wait for loading to finish and start debugging afterwards, all goes fine. Is it possible to add some logic so that VSCode would wait for PowerShell to finish loading instead of crashing?
Thanks!
Attached Logs
I haven't attached the logs as there are no errors and it has some sensitive data. If needed, I can send it over the email.
The text was updated successfully, but these errors were encountered: