Last active
February 27, 2021 13:37
-
-
Save teerasej/524266a57c911061a5845891342f2513 to your computer and use it in GitHub Desktop.
VSCode's launch.json that can be used in debugging deno RESTful web api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"type": "pwa-node", | |
"request": "launch", | |
"name": "Debug Deno", | |
"program": "index.ts", | |
"cwd": "${workspaceFolder}", | |
"runtimeExecutable": "deno", | |
"runtimeArgs": [ | |
"run", | |
"--inspect-brk=127.0.0.1:3010", | |
"-A" | |
], | |
"attachSimplePort": 3010, | |
"outputCapture": "std" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's some modifications before you use it in your workspace:
program
is the startup file for your project. For example:index.ts
,app.ts
,App.ts
runtimeArgs
, you can add or remove run argument here (Theinspect-brk
is a must-have)--inspect-brk
andattachSimplePort
has the same valueoutputCapture
is required to output log into VSCode's debug console.Thank you everyone from this issue denoland/vscode_deno#233