PowerShell / PowerShell/vscode-powershell

VSCode Debugging with Arguments

Open
#2,995 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Please update the debugging options in VSCode to allow for either:

  • keeping the last 10 unique arguments passed to the current script

  • set it up so we can launch a Powershell function directly to debug execution or extend debugging.

Ultimately, when launching a script, I'd like to be able to select the parameters available when Launching the script (Easily exposed using the Show-Command ${file} -Passthru command and arguments, or select them from a last used set of arguments for that particular file. I've written code to do this for the PSISE and it worked great but, I'm finding the debugging interface in VSCode lacking and would like to extend it.

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 reviewing the VSCode debugging options and the existing PowerShell extension behavior. Compare the requested argument history with the Show-Command ${file} -Passthru flow and the author's PSISE implementation. Done means users can select recent per-file arguments and launch a PowerShell function directly for debugging.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript, vscode
Domain
developer-experience, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.