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