Skip to content

Debug Powershell Untitled Files Not Working #3343

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

Closed
SoulSeekkor opened this issue May 7, 2021 · 3 comments
Closed

Debug Powershell Untitled Files Not Working #3343

SoulSeekkor opened this issue May 7, 2021 · 3 comments
Labels
Resolution-Fixed Will close automatically.

Comments

@SoulSeekkor
Copy link

Issue Description

Porting an issue from here that was determined to be an extension issue specifically.

Unless my memory is incorrect, one of the biggest advantages to VS Code over ISE was that we used to be able to set breakpoints and debug Powershell files that were untitled and not saved yet.

With this version I've noticed that no longer works, I can set a breakpoint on an untitled tab and it does not stop, it simply runs the entire script without stopping.

image

Attached Logs

Follow the instructions in the README about
capturing and sending logs.

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.19042
VSCode 1.56.0
PowerShell Extension Version 2021.2.2

PowerShell Information

Name Value
PSVersion 5.1.19041.906
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.19041.906
BuildVersion 10.0.19041.906
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
material-icon-theme PKief 4.6.0
powershell ms-vscode 2021.2.2
vscode-inline-values-powershell TylerLeonhardt 0.0.5
@ghost ghost added the Needs: Triage Maintainer attention needed! label May 7, 2021
@SydneyhSmith
Copy link
Collaborator

Thanks @SoulSeekkor when you ran the debugger were you prompted to save the file?

@SydneyhSmith SydneyhSmith added Needs-Repro-Info and removed Needs: Triage Maintainer attention needed! labels May 12, 2021
@SoulSeekkor
Copy link
Author

I was not! Thankfully that bug was fixed with the recent addition of the setting for VS Code to allow us to change the behavior back to not prompt on debug. I currently have it set to "nonUntitledEditorsInActiveGroup' so that it behaves like it used to, where we could run/debug untitled files without getting prompted.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label May 14, 2021
@SydneyhSmith SydneyhSmith added Resolution-Fixed Will close automatically. and removed Needs-Repro-Info Needs: Maintainer Attention Maintainer attention needed! labels May 18, 2021
@ghost ghost closed this as completed May 18, 2021
@SoulSeekkor
Copy link
Author

SoulSeekkor commented May 19, 2021

Was this mistakenly closed? I didn't mean by my last comment that this issue was resolved, only that the other VS Code prompt to save on debug problem was fixed by them adding that setting in that particular repo.... The issue with debug not working on untitled files is a whole other issue specific to this extension. Sorry if a fix was implemented and I missed it, I didn't see anything referenced here, just making sure.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label May 19, 2021
@andyleejordan andyleejordan removed the Needs: Maintainer Attention Maintainer attention needed! label Jun 14, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Fixed Will close automatically.
Projects
None yet
Development

No branches or pull requests

3 participants