You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support 'restart' option on 'launch' configs too #17381
Since VS Code node debugging now supports 'npm' or other task runners directly in 'launch' configs, it is now possible to run 'nodemon' as part of this.
This was not (easily) possible before. Instead users would run nodemon from the command line and then use a VS Code 'attach' config to connect to it.
To fully support the nodemon scenario with 'launch', we should support the 'restart' option not only for 'attach' but for 'launch' as well.
Support for restart will be available in tomorrow's Insiders build.
I'm using this feature myself in vscode-node-debug to launch the debug adapter with nodemon.
Please note: since nodemon runs as a demon process and is not under control of VS Code, pressing the terminate button does not kill it. So you will have to kill nodemon manually. The simplest way to do this is by running the launch config in the "integrated terminal" or an "external terminal" because both allow you to kill nodemon with Control-C (or even provide input to nodemon). Using the "debug console" does not support input or Control-C. The example shows how to do this.
Activity
added 'restart' support for 'launch'; fixes microsoft/vscode#15804 and …
weinand commentedon Dec 21, 2016
Support for
restartwill be available in tomorrow's Insiders build.I'm using this feature myself in vscode-node-debug to launch the debug adapter with nodemon.
Please note: since nodemon runs as a demon process and is not under control of VS Code, pressing the terminate button does not kill it. So you will have to kill nodemon manually. The simplest way to do this is by running the launch config in the "integrated terminal" or an "external terminal" because both allow you to kill nodemon with Control-C (or even provide input to nodemon). Using the "debug console" does not support input or Control-C. The example shows how to do this.