跳到主要内容
CNode

vscode实用nodemon进行debug

问答
Mmaochunguang发布于 9 年前最后回复 9 年前
672090

vscode新手,想使用nodemon进行debug后台项目,有哪位大神贴一下配置文件

查看回复

回复 (6)

A
atian25#69 年前

不用重新手动 attach

A
atian25#49 年前
引用 maochunguang

@maochunguang 端口是不是没配对

M
maochunguang#39 年前

untitled1.png

A
atian25#29 年前

上上一个版本的 vscode 就已经支持 restart: true 来在重启后自动 attach 了.

https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_restarting-debug-sessions-automatically-when-source-is-edited

I
i5ting#19 年前

代表变动nodemon就重启进程,你的debug肯定会断,没意义吧

参与回复

登录后即可参与回复。登录