Live-share: [VS Code] Debugger issue with nodemon config when the extension is enabled

Created on 8 Jun 2018  Ā·  7Comments  Ā·  Source: MicrosoftDocs/live-share

Hello,

I use the default launch.json configuration for nodemon.

Without VS live share extension, my nodemon debugger setup works well. The terminal is called __1: Node Debug Console__ and hot reload on file changes works as expected.

When the extension is enabled, the terminal name is replaced by __1: debuggee__ and a new integrated terminal opens each time I save my work instead of just reload the server.

Regards

Product and Version: VSCode 1.24.0
OS Version: Ubuntu 16.04.4
Live Share Extension Version: 0.3.264
Target Platform or Language: Node.js

co-debug terminal bug vscode

Most helpful comment

This issue has been resolved in the latest extension update, so if you update to the latest Live Share release, you'll be good to go šŸ‘ Let us know if you run into any other problems. Thanks!

All 7 comments

Here are the logs:
logs.zip

In this example my app crashes, and a new terminal opens endlessly after each crash.

bug

@lmichelin Hey! I can repro this issue, and it’s definitely a bug in Live Share. We’ll look into getting this resolved, but in the meantime, you may be able to work around this by setting the ā€œconsoleā€ property in your ā€œlaunch.jsonā€ file to ā€œinternalConsoleā€, as opposed to ā€œintegratedTerminalā€. That should give you the same debugging experience, without the constantly-spawning terminals when Nodemon recycles itself on file changes. Let us know if that helps. Otherwise, we’ll keep you updated on progress. Thanks for reporting this! šŸ‘

I disabled Live Share extension, and nodemon debugging work normally, thanks @lostintangent

@trmaphi Hey! As an alternative to disabling Live Share, you could also workaround this by updating your launch.json config as mentioned above (set the ā€œconsoleā€ property to ā€œinternalConsoleā€ instead of ā€œintegratedTerminalā€). Would that be a reasonable workaround for your use case in the meantime, while we address this bug?

@lostintangent tks for the suggestion

Setting the ā€œconsoleā€ property to ā€œinternalConsoleā€ doesn't solve the problem: a new process is still created each time nodemon needs to restart as it's shown on the ps xf screenshot below :

image

This issue has been resolved in the latest extension update, so if you update to the latest Live Share release, you'll be good to go šŸ‘ Let us know if you run into any other problems. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

csharpfritz picture csharpfritz  Ā·  4Comments

evasgit picture evasgit  Ā·  3Comments

Chuxel picture Chuxel  Ā·  4Comments

PranavGPR picture PranavGPR  Ā·  3Comments

YardGnomeNinja picture YardGnomeNinja  Ā·  3Comments