Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

chore: add VSCode debugging configuration #212

Merged
merged 2 commits into from
Sep 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach debugger"
},
{
"type": "node",
"runtimeExecutable": "deno",
"request": "launch",
"name": "Debug current file",
"program": "${file}",
"cwd": "${workspaceFolder}"
},
{
"type": "node",
"request": "launch",
"runtimeExecutable": "deno",
"runtimeArgs": ["task", "test", "--inspect-brk"],
"name": "Debug current test file",
"program": "${file}",
"cwd": "${workspaceFolder}",
"attachSimplePort": 9229
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is not explicitly set, VSCode launches this task with the following arguments

/path/to/deno run --inspect-brk=127.0.0.1:53033 --allow-all ./the/current/file.ts

}
]
}