Debugging nest.js application with vscode

前端 未结 10 2088
野的像风
野的像风 2021-02-01 20:24

I am testing the nest.js framework but I am struggling to run it with VSCode so that I can properly debug my code. This is pretty much the same issue as described here Running n

10条回答
  •  清歌不尽
    2021-02-01 20:57

    No need to mess up with .vscode/launch.json, just follow the official Auto Attach intro and ... Just Works!

    For example, I wanna debug my project quiz:

    1. Toggle "Auto Attach" to "On"

    1. Run the app as usual, for this project is npm run server:dev

    2. When the app started successfully, attach to the process

    1. See the first one? Click on it! Done! Now you can click on breakpoints and inspect!

提交回复
热议问题