PowerShell / PowerShell/vscode-powershell

Suggestion: Include 'Run in External PowerShell Window' by default in debug options

Open
#1,108 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Configuration Issue-Enhancement Up for Grabs
Dominant language
TypeScript
Stars
1.9k
Forks
547
PR merge metrics
No merged PRs in 30d

Description

Hi, all,

Firstly, I love this PowerShell in vscode, thank you for this!
Secondly, I loved PowerGUI while it worked.

Mostly because a lot of the scripting work that I do is very one and done, and I don't need to do a lot of debugging, but the scripts I write are far too long to do freely in a powershell window.

As a result, I LOVED the 'Run in External PowerShell Window' option that PowerGUI supported.

I have found that I can get this functionality back by adding the following Launch Option into my Launch.json file, however, it took far longer than I care to admit to get it working as I wasn't sure about how the launch settings actually worked:

    {
        "type": "PowerShell",
        "request": "launch",
        "name": "Run in External PowerShell Window",
        "script": "Start-Process",
        "args": ["PowerShell.exe -Argumentlist '-NoExit -Executionpolicy Bypass -File ${File}'"],
        "cwd": "${File}"
    },

Can this please be added as a default Launch option for others who miss this functionality! :)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how vscode-powershell contributes default PowerShell launch configurations and compare that behavior with the launch.json snippet in the report. Add the external-window configuration to the defaults, then verify that a new debug configuration exposes it and launches the current file in an external PowerShell window.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript, vscode
Domain
developer-experience, devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.