Skip to content

Commit c970b8c

Browse files
committed
add local debug config for VScode and CLI commands
1 parent ad8ed4f commit c970b8c

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.vscode/launch.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "pwa-node",
6+
"request": "launch",
7+
"name": "Debug CLI",
8+
"program": "${workspaceFolder}/bin/dev.js",
9+
"runtimeExecutable": "tsx",
10+
"args": ["${input:cliCommand}"],
11+
"runtimeArgs": ["--inspect"],
12+
"console": "integratedTerminal",
13+
"autoAttachChildProcesses": true
14+
}
15+
],
16+
"inputs": [
17+
{
18+
"id": "cliCommand",
19+
"type": "promptString",
20+
"description": "Enter the CLI command to debug (e.g. app:list, code:push, etc.)",
21+
"default": "app:list"
22+
}
23+
]
24+
}

0 commit comments

Comments
 (0)