Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Debug ArgNew to Visual Studio Code? Get it now.
Debug Arg

Debug Arg

bpisler

|
979 installs
| (2) | Free
Dynamic run-time debug argument
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-debug-arg README

This extension allows you to provide an argument when running a command in the VS Code debugger.

How to

Simply place ${command:debug-arg.prompt} in any part of your debugger command configuration.

Example running mocha tests with dynamic test regex flag -g:

{
    "type": "node",
    "request": "launch",
    "name": "Mocha Tests",
    "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
    "args": [
        "-u",
        "tdd",
        "--timeout",
        "999999",
        "--colors",
        "${workspaceFolder}/test",
        "-g",
        "${command:debug-arg.prompt}"
    ],
    "internalConsoleOptions": "openOnSessionStart"
},
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft