Skip to content

NodeJS debugger doesn't properly handle launched apps that restart on file change. #40917

Description

@SteelPhase

I've included additional details here microsoft/vscode-recipes#52

I assume a property would need to be added to the node launch config to allow this to work correctly, and that this property doesn't already exit.

I did attempt to use restart: true, but that didn't correct anything.

  • VSCode Version: 1.91.1
  • OS Version: 10.12.6

Steps to Reproduce:

  1. Clone the sample project git clone https://github.com/SteelPhase/vscode-meteor-test vscode-meteor-test
  2. CD into the directory cd vscode-meteor-test
  3. install npm dependencies meteor npm install
  4. open vscode without extentions code --disable-extensions .
  5. launch Meteor: Node launch config
  6. wait util meteor launch, and debugger attaches
  7. modify !! Change me !! on line 6 of server/main.js to any value
  8. save file
  9. wait for => Server modified -- restarting...
  10. debugger will disconnect, and in doing so kills the npm, and meteor node processes

Expected end result:
Meteor should restart as usual with the file change, and either the node debugger should detach, or reattach as the debugger becomes available again.

Reproduces without extensions: Yes

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS CodedebugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions