TypeScript 用の .vscode/launch.json
yarn dev で nodemon で ts-node 動かす構成の場合
code:json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "dev",
"runtimeExecutable": "yarn",
"outputCapture": "std",
"internalConsoleOptions": "openOnSessionStart",
"stopOnEntry": false,
"cwd": "${workspaceRoot}",
}
]
}
stopOnEntry
プログラム開始時に break
いらないので false
outputCapture
std を設定しておくと、stdout/stderr が Debug Console に表示される
skipFiles
指定したディレクトリ配下には step in しない (Just my Code)
node_modules は見たいのでここには含めない