CNode

vscode实用nodemon进行debug

问答
Mmaochunguang发布于9 年前最后回复9 年前6 回复7176 浏览0 收藏

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

查看回复

回复 (6)

I
i5ting#1·9 年前

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

A
atian25#2·9 年前

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

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

M
maochunguang#3·9 年前

untitled1.png

A
atian25#4·9 年前
引用 maochunguang

@maochunguang 端口是不是没配对

A
atian25#6·9 年前

不用重新手动 attach

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