vscode调试typescript
1、记录一个插件:https://www.npmjs.com/package/ts-node
# Locally in your project
npm install -D ts-node
npm install -D typescript
# Or globally (not recommended)
npm install -g ts-node
npm install -g typescript
lanch.json
{ "type": "node", "request": "launch", "name": "Launch Program", "runtimeArgs": [ "-r", "ts-node/register" ], "args": [ "${workspaceFolder}/index.ts" ] }
学而不思则罔,思而不结则殆,结而不看,一事无成