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

Add flag to disable process.exit() #108

Open
Roger-Heathcote opened this issue Dec 17, 2016 · 1 comment
Open

Add flag to disable process.exit() #108

Roger-Heathcote opened this issue Dec 17, 2016 · 1 comment

Comments

@Roger-Heathcote
Copy link

I'm have some code that runs a few tests then calls process.exit(). Without process.exit the code never terminates in node on the command line which breaks my automated tests. However if I'm using devtool this means the windows closes before I can see the test results and I don't get to check what state it was in just before exiting. Right now I'm just inserting a debugger statement just before process.exit so it's not a big deal but a command line flag to prevent process.exit closing the window would be lovely.

@aleclarson
Copy link

The snippet below would work, too. But I agree that devtool should have this by default.

process.on('exit', function() {
  debugger;
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants