-
Notifications
You must be signed in to change notification settings - Fork 510
Powershell Intergrated console terminates when ending debug session #1441
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
Thanks for the info! Can you also attach the logs here so we can get a better idea of what's going on? |
I am working internally at Microsoft cannot attach the log |
In that case, can you email them to [email protected] ? |
Hi @msturtz2017 did you get a chance to send through those logs? |
Not yet able to reproduce this. Will try again on a Windows machine tomorrow |
@rjmholt This may be the same issue as the PSReadline I've been seeing. I usually see it when doing Interactive Session, and when I stop it happens immediately. Here's my initial repro: And the follow-on logs:
|
@JustinGrote yes I think this is the issue you were seeing too. It has to do with us changing to named pipes. I'll have a look into it |
So my current theory is that VSCode might be closing the named pipe on its end. The problem is that VSCode has to create the named pipe and it has to do so in a certain way to keep the connection secure. So this one might take some work to fix... But I'm not sure why the named pipe is closing. |
I have the same issue whenever I attempt to use the Powershell Interactive Session launch configuration. I set a breakpoint and when it hits it, I stop debugging. I Immediately get the following error: "The PowerShell session has terminated due to an error, would you like to restart it?" |
@johnpankowicz Can you attach a zip of the log files from a session that has terminated this way? See https://github.com/PowerShell/vscode-powershell/blob/master/docs/troubleshooting.md#logs for instructions. |
@rkeithhill I upgraded version 1.7.0 back to 1.11.0. Now the problem does not occur! Before downgrading to 1.7.0, I had done a lot of testing on 1.11.0 and the Preview 2.0.0 to see under what conditions I would get or not get the problem. I couldn't find a case where it would NOT occur. The problem went away when I found and tried the suggestion above by @msturtz2017 to downgrade to 1.7.0. |
@johnpankowicz I will close the issue for now, please let us know if you begin encountering this again |
System Details
Operating system name and version: Windows 10 1803 (OS Build 17134.81)
VS Code version: 1.25.1
PowerShell extension version: 1.8.1
Issue Description
I am experiencing a problem with...
PowerShell Intergated terminal terminates after debug session
Step to reproduce
Install PowerShell extension 1.8.1
Click reload to so the extension is available
In Visual Code Open folder that has valid PowerShell files
Open ps1 file and set some BreakPoints in the file
Start PowerShell debugging session using VS Code ( PowerShell Integrated Console )
Stop debug session
Expected results
The PowerShell Intergated terminal should continue running
Actual
PowerShell Intergated terminal has terminated would you like to restart it
Workaround
Downgrade to 1.7.0 Extension
The text was updated successfully, but these errors were encountered: