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

debugger: also exit when the repl emits 'exit' #2369

Closed
wants to merge 1 commit into from
Closed

debugger: also exit when the repl emits 'exit' #2369

wants to merge 1 commit into from

Conversation

fb55
Copy link
Contributor

@fb55 fb55 commented Aug 13, 2015

this.repl.rli.on('SIGINT', exitDebugRepl);

// Exit debug repl on '.exit'
this.repl.on('exit', exitDebugRepl);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe prefer 'close'? Does the same thing but I think 'exit' may be an older event we don't use internally.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's still used in L762, or am I missing something?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, hmm. Carry on then. Maybe we should switch it eventually.

@jasnell
Copy link
Member

jasnell commented Aug 26, 2015

@cjihrig @Fishrock123 ... does this look good to you now?

@cjihrig
Copy link
Contributor

cjihrig commented Aug 26, 2015

LGTM

// Exit debug repl on Ctrl + C
this.repl.rli.on('SIGINT', exitDebugRepl);

// Exit debug repl on '.exit'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comments aren't so correct imo. ctrl+c isn't the only way to send a SIGINT to a procees, and exit can also be caused by ctrl+d on an empty repl prompt.

@Fishrock123
Copy link
Contributor

LGTM otherwise

@jasnell
Copy link
Member

jasnell commented Nov 16, 2015

Whoops... looks like this got the LGTM's but never landed. @Fishrock123 and @cjihrig ... still good with this?

@cjihrig
Copy link
Contributor

cjihrig commented Nov 16, 2015

Yes, but let's see what the butler says. CI: https://ci.nodejs.org/job/node-test-pull-request/748/

@cjihrig
Copy link
Contributor

cjihrig commented Nov 16, 2015

This fails linting. There are some lines with trailing whitespace. If everything else is fine, it can be corrected when landing.

@jasnell
Copy link
Member

jasnell commented Nov 16, 2015

A couple of unrelated errors in CI

@jasnell
Copy link
Member

jasnell commented Nov 16, 2015

I will get this landed. @Fishrock123, when I land I'll also fix the comment re the ctrl+c and sigint

jasnell pushed a commit that referenced this pull request Nov 16, 2015
Exit the debug repl when repl emits 'exit'

Refs: nodejs/node-v0.x-archive#5637
Fixes: nodejs/node-v0.x-archive#5631
PR-URL: #2369
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@jasnell
Copy link
Member

jasnell commented Nov 16, 2015

Landed in a95eb5c

@jasnell jasnell closed this Nov 16, 2015
Fishrock123 pushed a commit that referenced this pull request Nov 17, 2015
Exit the debug repl when repl emits 'exit'

Refs: nodejs/node-v0.x-archive#5637
Fixes: nodejs/node-v0.x-archive#5631
PR-URL: #2369
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@rvagg rvagg mentioned this pull request Dec 17, 2015
MylesBorins pushed a commit that referenced this pull request Dec 29, 2015
Exit the debug repl when repl emits 'exit'

Refs: nodejs/node-v0.x-archive#5637
Fixes: nodejs/node-v0.x-archive#5631
PR-URL: #2369
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Jan 19, 2016
Exit the debug repl when repl emits 'exit'

Refs: nodejs/node-v0.x-archive#5637
Fixes: nodejs/node-v0.x-archive#5631
PR-URL: #2369
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Jan 19, 2016
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

Successfully merging this pull request may close these issues.

Repl in node debug can only be exited using ctrl-c
6 participants