PowerShell / PowerShell/vscode-powershell
Debug Session not respecting Added or removed Breakpoints & Integrated Shell Crash
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 547
- PR merge metrics
- No merged PRs in 30d
Description
Issue Description
When I run a debug session two things happen:
- Any addition or removal of breakpoints is not respected
- The Integrated shell Crashes after not exiting correctly
You can replicate this by running a small script like:
while ($true)
{
Write-Output "I'm In a loop"
Start-Sleep 10
Write-Output "I just woke up"
}
Removing Breakpoint
- Set a breakpoint on the first
Write-Output - Debug The script
- Remove Breakpoint on First
Write-Output - Continue running
What will happen is the debugger will break again on the first Write-Output and you won't be able to continue. If you stop execution and type exit in the debug terminal the integrated terminal will crash
Adding Breakpoint
- Debug the script
- Set a breakpoint anywhere in the while loop
- It will never be hit.
Attached Logs
EditorServices.log
vscode-powershell.log
) about
capturing and sending logs.
Environment Information
Visual Studio Code
| Name | Version |
|---|---|
| Operating System | Windows_NT x64 10.0.16299 |
| VSCode | 1.26.1 |
| PowerShell Extension Version | 1.8.3 |
PowerShell Information
| Name | Value |
|---|---|
| PSVersion | 5.1.16299.492 |
| PSEdition | Desktop |
| PSCompatibleVersions | 1.0 2.0 3.0 4.0 5.0 5.1.16299.492 |
| BuildVersion | 10.0.16299.492 |
| CLRVersion | 4.0.30319.42000 |
| WSManStackVersion | 3.0 |
| PSRemotingProtocolVersion | 2.3 |
| SerializationVersion | 1.1.0.1 |
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
| Extension | Author | Version |
|---|---|---|
| aspnet-helper | schneiderpat | 0.6.4 |
| ecdc | mitchdenny | 0.12.0 |
| EditorConfig | EditorConfig | 0.12.4 |
| github-issues-prs | ms-vscode | 0.9.0 |
| gitlens | eamodio | 8.5.6 |
| jenkins-declarative-support | jmMeessen | 0.1.0 |
| markdown-all-in-one | yzhang | 1.6.0 |
| PowerShell | ms-vscode | 1.8.3 |
| python | ms-python | 2018.7.1 |
| rainbow-csv | mechatroner | 0.4.2 |
| vscode-github | KnisterPeter | 0.30.0 |
| vscode-icons | robertohuertasm | 7.25.0 |
| vscode-markdownlint | DavidAnson | 0.20.0 |
| vscode-mermaid-preview | vstirbu | 0.10.1 |
| xml | DotJoshJohnson | 2.3.2 |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the PowerShell while-loop script and review the attached EditorServices.log and vscode-powershell.log. Verify both breakpoint additions and removals during a debug session, then confirm that entering exit after stopping does not crash the integrated shell.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, typescript, vscode
- Domain
- developer-experience, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100