Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Node process never exits while debugger attached #33

Closed
mousetraps opened this issue Sep 27, 2016 · 2 comments
Closed

Node process never exits while debugger attached #33

mousetraps opened this issue Sep 27, 2016 · 2 comments

Comments

@mousetraps
Copy link

mousetraps commented Sep 27, 2016

Testing microsoft/vscode#12600

Node v6.6.0 (32-bit), Windows

Repro steps - launch.json configured to launch app.js

/* app.js */
setTimeout(function() {
    console.log('done');
    process.exit();
},1000)

Expected: process exits after 1s
Actual: process never exits
image

@mousetraps
Copy link
Author

Also looked into whether this was a Node issue or a VSCode issue... node --inspect --debug-brk --nolazy app.js does not exit properly w/ chrome debug tools (in that case, it returns the additional error message: "Waiting for the debugger to disconnect..."), so I suspect it's an issue on Node's end. Not sure why this message didn't get printed in VSCode, though

@mousetraps mousetraps changed the title Node process never exits Node process never exits while debugger attached Sep 27, 2016
@roblourens
Copy link
Member

I would also expect that message to be printed. I usually see it...

This is #11 :(

@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants