PowerShell / PowerShell/vscode-powershell

add debug configuration for scripts with command-line arguments

Open
#4,671 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Prerequisites
  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
Summary

There was a configuration in past for launching debugger for scripts with command-line arguments. It would be nice to have it back.

Proposed Design
  {
    "type": "PowerShell",
    "request": "launch",
    "name": "PowerShell Launch Current File w/Args Prompt",
    "script": "${file}",
    "args": [
      "${command:SpecifyScriptArgs}"
    ],
    "cwd": "${file}"
  },

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

No files or tests are named. Search the extension for the PowerShell debug launch configuration and the SpecifyScriptArgs command, then compare current handling with the proposed JSON. Done means restoring a launch configuration for the current script that accepts command-line arguments.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript
Domain
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.