# debugger: Special-case \`npm\` et al\. as \`program\` field for JS debug definitions \(\#32549\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/1083c0ac53ff4679337e103eefa2d4787fb148f2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 1083c0ac53ff4679337e103eefa2d4787fb148f2

Requested commit: 1083c0ac53ff4679337e103eefa2d4787fb148f2

Commit: 1083c0ac53ff4679337e103eefa2d4787fb148f2

Tree: c6b3788eec12fd7b6f815f6d789494e0a0a4e3ac

Author: Cole Miller

Committer: GitHub

## Message

````
debugger: Special-case `npm` et al. as `program` field for JS debug definitions (#32549)

Send `runtimeExecutable` and `runtimeArgs` instead of `program` and
`args` to avoid the DAP implicitly wrapping the command in `node`.

This means that putting `pnpm vitest <file>` as the command in the
launch modal will work, as will this in debug.json:

```
[
  {
    "adapter": "JavaScript",
    "type": "pwa-node",
    "label": "Label",
    "request": "launch",
    "program": "pnpm",
    "args": ["vitest", "<file>"],
    "cwd": "/Users/name/project"
  }
]
```


Release Notes:

- Debugger Beta: made it possible to use commands like `pnpm
<subcommand> <args>` in the launch modal and debug.json
````

## Parents

- [2a63c5f9512c076be88fc33af9e8f34f7b0e044b](https://git.cafe/gitcafe/zed/commit/2a63c5f9512c076be88fc33af9e8f34f7b0e044b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/1083c0ac53ff4679337e103eefa2d4787fb148f2?format=markdown)
