Skip to content

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

Closed
fb55 wants to merge 1 commit into
nodejs:masterfrom
fb55:patch-1
Closed

debugger: also exit when the repl emits 'exit'#2369
fb55 wants to merge 1 commit into
nodejs:masterfrom
fb55:patch-1

Conversation

@fb55

@fb55 fb55 commented Aug 13, 2015

Copy link
Copy Markdown
Contributor

Comment thread lib/_debugger.js Outdated

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

jasnell commented Aug 26, 2015

Copy link
Copy Markdown
Member

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

@cjihrig

cjihrig commented Aug 26, 2015

Copy link
Copy Markdown
Contributor

LGTM

Comment thread lib/_debugger.js Outdated

Copy link
Copy Markdown
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
Copy Markdown
Contributor

LGTM otherwise

@jasnell

jasnell commented Nov 16, 2015

Copy link
Copy Markdown
Member

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

@cjihrig

cjihrig commented Nov 16, 2015

Copy link
Copy Markdown
Contributor

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

@cjihrig

cjihrig commented Nov 16, 2015

Copy link
Copy Markdown
Contributor

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

@jasnell

jasnell commented Nov 16, 2015

Copy link
Copy Markdown
Member

A couple of unrelated errors in CI

@jasnell

jasnell commented Nov 16, 2015

Copy link
Copy Markdown
Member

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 <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@jasnell

jasnell commented Nov 16, 2015

Copy link
Copy Markdown
Member

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 <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@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 <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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 <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@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