概要 Typescriptのデバッグを体験する。 コードはこちら 各種ファイルの役割等を調べたので共有。 .vscode/launch.jsonを作成 { "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Launch TypeScript", "preLaunchTask": "Compile TypeScript", "cwd": "${workspaceFolder}", "program": "${file}" } ] } launch.jsonとは VSCodeでデバッグ実行するための設定ファイル 作業ディレクトリの.vscodeディレクトリ配下に作成する 公式ドキュメント 各種パラメータ version 不明 configurations type 起動
![VSCodeでTypescriptのデバッグを体験してみる](https://cdn-ak-scissors.b.st-hatena.com/image/square/a8afc7516c72fe7a57be5881aa4b336767a3ce33/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--XzT8XXMv--%2Fc_fit%252Cg_north_west%252Cl_text%3Anotosansjp-medium.otf_55%3AVSCode%2525E3%252581%2525A7Typescript%2525E3%252581%2525AE%2525E3%252583%252587%2525E3%252583%252590%2525E3%252583%252583%2525E3%252582%2525B0%2525E3%252582%252592%2525E4%2525BD%252593%2525E9%2525A8%252593%2525E3%252581%252597%2525E3%252581%2525A6%2525E3%252581%2525BF%2525E3%252582%25258B%252Cw_1010%252Cx_90%252Cy_100%2Fg_south_west%252Cl_text%3Anotosansjp-medium.otf_37%3Abyebyeworld%252Cx_203%252Cy_121%2Fg_south_west%252Ch_90%252Cl_fetch%3AaHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tL2EtL0FPaDE0R2pfWmpISHpRb29IRU0zSnNySVd3Szl0dlJBUW80QXlIcU1jN3M0PXM5Ni1j%252Cr_max%252Cw_90%252Cx_87%252Cy_95%2Fv1627283836%2Fdefault%2Fog-base-w1200-v2.png)