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
{{ message }}
Repository navigation
[DBG] prompt not displayed when breakpoint hit unless Enter is pressed #1850
Stéphane BARIZIEN (@sba923) thanks for reporting, both of these issues, the second one does separate, could you please open another issue for that one? We can reproduce this, it looks related to PSReadLine support.
We are having trouble reproducing the first one...which launch configuration are you using?
I looked into this a little bit, but I wasn't able to track down where it happens yet. Given that the workaround is to press enter, I'll have to get back to this one while we solve some of the other issues in the latest preview.
TylerLeonhardt I hereby confirm that the fix worked on first try. Great job!
(I was scared at first by the "the extension has been updated to..." notification, fearing that the marketplace version might have overwritten the one from the VSIX...)
Activity
sba923 commentedon Apr 8, 2019
This might or might not be related to the following other issue with prompts:
Take the following script, stored at
C:\private_sba\PowerShell\TestPowerShellDebuggerBehaviorWithPrompt.ps1:If you run this via F5 in the Windows PowerShell ISE you get:
But if you do the same in VScode, you get:
if you're using the "PowerShell Launch Current File" configuration, and
if you're using the "PowerShell Launch Current File w/Args Prompt" configuration.
Both are incorrect if you ask me. I'll probably open a separate issue for that.
SydneyhSmith commentedon Apr 9, 2019
Stéphane BARIZIEN (@sba923) thanks for reporting, both of these issues, the second one does separate, could you please open another issue for that one? We can reproduce this, it looks related to PSReadLine support.
We are having trouble reproducing the first one...which launch configuration are you using?
sba923 commentedon Apr 10, 2019
You're welcome.
Opened #1862.
(I've already mentioned which launch configurations I'm using ;-) )
sba923 commentedon Nov 4, 2019
I hate to say, but I can repro this with version 2019.11.0 of the PowerShell Preview extension (in conjunction with PSReadLine 2.0.0 beta 5).
I get an additional issue when I hit Enter after the debugger stops at the breakpoint:
I will open a new issue for that.
rjmholt commentedon Nov 4, 2019
Yes, this issue remains open because we haven't been able to address it yet.
sba923 commentedon Nov 5, 2019
You're right. I should've inferred that from the release notes....
rjmholt commentedon Nov 5, 2019
I looked into this a little bit, but I wasn't able to track down where it happens yet. Given that the workaround is to press enter, I'll have to get back to this one while we solve some of the other issues in the latest preview.
TylerLeonhardt commentedon Nov 10, 2019
I have a fix out for this ^
sba923 commentedon Nov 10, 2019
Great! Want me to give it a shot?
TylerLeonhardt commentedon Nov 12, 2019
Stéphane BARIZIEN (@sba923)
Keep in mind this is a non-signed non-supported build and only for the sake of verifying that the problem is fixed.
PowerShell-insiders.vsix.zip
Here's the vsix - do you know have to install it?
or
in the GUI on the extensions page.
You may need to uninstall the PowerShell Preview extension in order to install this one as I have not rev'd the version.
sba923 commentedon Nov 12, 2019
TylerLeonhardt I hereby confirm that the fix worked on first try. Great job!
(I was scared at first by the "the extension has been updated to..." notification, fearing that the marketplace version might have overwritten the one from the VSIX...)