Skip to content
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

F5 not continuing the script after stopping at a breakpoint #2212

Closed
DarkLite1 opened this issue Sep 25, 2019 · 5 comments
Closed

F5 not continuing the script after stopping at a breakpoint #2212

DarkLite1 opened this issue Sep 25, 2019 · 5 comments
Labels
Bug: VS Code Bugs in VS Code itself. Resolution-External Will close automatically.

Comments

@DarkLite1
Copy link

System Details Output

### VSCode version: 1.39.0-insider 817eb6b0c720a4ecbc13c020afbbebfed667aa09 x64

### VSCode extensions:
[email protected]
[email protected]
[email protected]
[email protected]


### PSES version: 2.0.0.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      5.1.14409.1018
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14409.1018
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

I am experiencing a problem with debugging. When a breakpoint is set at a specific line in the PowerShell script and F5 is pressed the script is executed until that point. So far all good. However, when I want the script to continue after the breakpoint, usually I press F5 again and it continues to the next breakpoint or until the end if there are no breakpoints anymore.

When pressing F5 after the latest update it appears that the script does not continue and a pop up at the bottom right corner is shown.

image

The only way to continue the script, as before, is pressing the blue play button at the top.

Expected Behaviour

Have the F5 button continue the script after a breakpoint, just like it was before.

@ghost ghost added the Needs: Triage Maintainer attention needed! label Sep 25, 2019
@TylerLeonhardt
Copy link
Member

@DarkLite1 the F5 keybinding is created by VS Code itself. Can you open this issue over in https://github.com/Microsoft/vscode ?

@TylerLeonhardt TylerLeonhardt added Bug: VS Code Bugs in VS Code itself. Needs-Repro-Info and removed Needs: Triage Maintainer attention needed! labels Sep 25, 2019
@corbob
Copy link
Contributor

corbob commented Sep 25, 2019

@DarkLite1 the F5 keybinding is created by VS Code itself. Can you open this issue over in https://github.com/Microsoft/vscode ?

Is it though? I am certain I used F5 to continue all the time... I haven't debugged anything since 2019.9.0, but I am 80% sure I did in 2019.5.x...

Is this possibly an issue with these extensions together:

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Sep 25, 2019
@TylerLeonhardt
Copy link
Member

maybe... @DarkLite1 do you have both extensions active? You should have 1 disabled at all times.

@corbob
Copy link
Contributor

corbob commented Sep 25, 2019

TL;DR: Corbob rambles and screenshots things. Then discovers it's a vscode-insider bug that is fixed in the next update. Link at the end.

I could also be wrong on that...

I don't get the error when I try to F5 again... but it doesn't continue. Probably a keybinding thing:
Debug menu in vscode. Lack of keybinding for Continue highlighted

I have reverted to 2019.5.0 and happy to report that I was incorrect, F5 did not work there either. I think my confusion comes from that I usually am stepping and then just hit continue when F5 doesn't work. But I agree with @DarkLite1 F5 should continue at that point. But also agree with @TylerLeonhardt this to me is a vscode issue as it's the debug keybinding that should likely apply to all languages and not just PowerShell. I typed all this up, then looked at versions of vscode, so I'll leave this here, but I will now also show this screenshot from vscode stable:
debug menu from vscode stable. Continue has a keyboard shortcut

So this is definitely an issue in code, and is only present in insiders. The keybinding is also there in insider:
Debug: Continue keybinding showing it is set to F5 when inDebugMode

Looks like it's reported and fixed: microsoft/vscode#81373

@TylerLeonhardt
Copy link
Member

Thanks @corbob! I'll close this as external

@TylerLeonhardt TylerLeonhardt added the Resolution-External Will close automatically. label Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: VS Code Bugs in VS Code itself. Resolution-External Will close automatically.
Projects
None yet
Development

No branches or pull requests

3 participants