Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 'restart' option on 'launch' configs too #17381

Closed
weinand opened this issue Dec 16, 2016 · 1 comment
Closed

Support 'restart' option on 'launch' configs too #17381

weinand opened this issue Dec 16, 2016 · 1 comment
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Milestone

Comments

@weinand
Copy link
Contributor

weinand commented Dec 16, 2016

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.

/cc @egamma

@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality labels Dec 16, 2016
@weinand weinand added this to the January 2017 milestone Dec 16, 2016
@weinand weinand self-assigned this Dec 16, 2016
weinand added a commit to microsoft/vscode-node-debug that referenced this issue Dec 21, 2016
@weinand
Copy link
Contributor Author

weinand commented Dec 21, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

1 participant