Skip to content

Commit

Permalink
allow vscode to debug tea with arbitrary args
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Santos <[email protected]>
  • Loading branch information
felipecrs authored and mxcl committed Aug 1, 2023
1 parent d435a16 commit 11b4494
Showing 1 changed file with 42 additions and 18 deletions.
60 changes: 42 additions & 18 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,44 @@
{
"version": "0.2.0",
"configurations": [
{
"request": "launch",
"name": "Debug Test",
"type": "node",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "deno",
"runtimeArgs": [
"test",
"--unstable",
"--inspect-brk",
"--allow-all",
"${file}",
],
"attachSimplePort": 9229
}
]
"version": "0.2.0",
"configurations": [
{
"request": "launch",
"name": "Debug Test",
"type": "node",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "deno",
"runtimeArgs": [
"test",
"--unstable",
"--inspect-brk",
"--allow-all",
"${file}"
],
"attachSimplePort": 9229
},
{
"request": "launch",
"name": "Debug Tea with args",
"type": "node",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "deno",
"runtimeArgs": [
"run",
"--unstable",
"--inspect-brk",
"--allow-all",
"src/app.ts"
],
"args": "${input:args}",
"attachSimplePort": 9229
}
],
"inputs": [
{
"id": "args",
"type": "promptString",
"default": "",
"description": "The arguments for tea"
}
]
}

0 comments on commit 11b4494

Please sign in to comment.