【VSCode・Deno】DenoをVSCodeでデバッグする
概要
Visual Studio Code で Deno をデバッグする設定を記載します。 以下のページを参考に設定しています。
サンプルソース
.vscode/launch.json
{ "version": "0.2.0", "configurations": [ { "name": "Deno", "type": "node", "request": "launch", "cwd": "${workspaceFolder}", "runtimeExecutable": "deno", "runtimeArgs": ["run", "--inspect-brk", "-A", "main.ts"], "port": 9229 } ] }
実行結果
- 下記のようにVisual Studio Code のデバッグ実行を行います。ブレークポイントを設定したソースで止まると成功です。