Skip to content

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

Closed

Description

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 Erich Gamma (@egamma)

Activity

  1. added
    debug
    feature-request
    on Dec 16, 2016
  2. weinand commented on Dec 21, 2016

    @weinand
    ContributorAuthor

    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.

  3. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debugfeature-request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions