Skip to content

Configure launch.json for VSCode to execute PowerShell commands in the debug session #2231

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
Hypernut opened this issue Oct 7, 2019 · 2 comments
Labels
Issue-Discussion Let's talk about it. Resolution-Answered Will close automatically.

Comments

@Hypernut
Copy link

Hypernut commented Oct 7, 2019

Is it possible to create an entry in the launch.json, which executes a PowerShell script or scriptblock, in the same runspace as the then to-be-launched-and-debugged script?

The reason is, I would like to reset the runspace (remove variables + background jobs, unload modules etc.) before debugging a script.
The "temporary integrated console" which was created for that purpose, unfortunately has an unfixed bug for over a year now, which prevents interactive debugging in the temporary console and therefore makes it useless to me.
Thanks!

@ghost ghost added the Needs: Triage Maintainer attention needed! label Oct 7, 2019
@SydneyhSmith
Copy link
Collaborator

@Hypernut thanks for bringing this issue back up to our attention..unfortunately there is no configuration that achieves what you are looking for. We are currently doing significant work in the debugger and hope to resolve this issue, we will continue to track this issue with #1263

@SydneyhSmith SydneyhSmith added Issue-Discussion Let's talk about it. Resolution-Answered Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Oct 7, 2019
@Hypernut
Copy link
Author

Hypernut commented Oct 7, 2019

That would be great, thanks!

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Oct 7, 2019
@SydneyhSmith SydneyhSmith removed the Needs: Maintainer Attention Maintainer attention needed! label Oct 8, 2019
@ghost ghost closed this as completed Oct 9, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Discussion Let's talk about it. Resolution-Answered Will close automatically.
Projects
None yet
Development

No branches or pull requests

2 participants