PowerShell / PowerShell/vscode-powershell
Would like a "Debug" configuration to run in external Posh Console, passing params.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 547
- PR merge metrics
- No merged PRs in 30d
Description
PowerGui, rest its soul, had the option to run the script in an external window. I would not expect this to respect breakpoints and whatnot... I just want to be able to run the script in the external window without having to copy/paste or manually run the script.
I have looked at the debug configurations in launch.json, but I can't figure out how to make the script execute in an external posh console.
While VSCode and the PowerShell add-in are an awesome pair, sometimes I need to see what the script will be like when it runs in the real world. This solution would ease that kind of testing.
Proposed technical implementation details (optional)
I think the simplest solution would likely be to support a new launch.json configuration that would pop up an external console window, passing the script and command line arguments. This would require no additional UI elements and could be easily communicated.
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 with the launch.json debug configurations and the extension's existing debug entry points. Trace how a script and its parameters are currently passed to the debugger, then define the external Posh Console behavior. Done means a launch configuration runs the script in an external console with command-line parameters without requiring copy/paste.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100