question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

F5 not continuing the script after stopping at a breakpoint

See original GitHub issue

System Details Output

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

### VSCode extensions:
ban.spellright@3.0.46
ms-vscode.powershell@2019.9.0
ms-vscode.powershell-preview@2019.9.0
ritwickdey.LiveServer@5.6.1


### 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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
corbobcommented, 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: https://github.com/microsoft/vscode/issues/81373

0reactions
TylerLeonhardtcommented, Sep 25, 2019

Thanks @corbob! I’ll close this as external

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stop Debugging (Shift+ F5) does not stop the test run VS 2019 ...
Though it will stop the test run when we clicked it, it will still continue at least one line of code (after the...
Read more >
F5, run to the next break point not working? #196 - GitHub
Start the debugger (F5), letting it stop on the entry point; Set the desired breakpoint (in a new tab); Continue the debugger (F5)....
Read more >
Why does "F5 - Start Debugging" ignore breakpoints in ...
the script runs but the breakpoints are ignored. The script I'm working on is substantial and I don't really want to have to...
Read more >
Pressing F5 on a breakpoint reloads the debugger scripts
F5 is a common keyboard shortcut to resume execution. I pressed F5 on the debugger and all of the script sources were removed....
Read more >
How to Debug Scripts in Windows PowerShell ISE
Press F5 or, on the toolbar, click the Run Script icon, or on the Debug menu, click Run/Continue or, in the Console Pane,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found