Conversation
- `quit`, `q` - quit with confirmation - `quit!`, `q!` - quit immediately
README.md
Outdated
| * `kill` or `q[uit]!` | ||
| * `q[uit]!` | ||
| * Finish debugger immediately (with the debuggee process on non-remote debugging). | ||
| * `kill(!)` |
There was a problem hiding this comment.
rake command update the doc :)
lib/debug/session.rb
Outdated
| @tc << :continue | ||
|
|
||
| # * `kill` | ||
| # * Stop the debuggee process. |
There was a problem hiding this comment.
This is my fault, but could you change the description about kill command?
Maybe the word "immediately" fits for this command. For example,
"Stop the debugger process immediately with exit! method"
is clear for Rubyist (I think rubyists knows what exit! method mean. ... is it ok?)
So the doc for quit! should be:
* q[uit]!
* Same as `quit` command, but without asking prompt. <- please correct my poor English please :p
and so on will be clear.
There was a problem hiding this comment.
maybe q! is familiar with vim's command for programmers.
|
Thank you! |
| @tc << :continue | ||
|
|
||
| # * `kill` | ||
| # * Stop the debuggee process with `Kernal#exit!`. |
There was a problem hiding this comment.
@ko1 I think it's Kernel#exit!, right?
I can't speak for other people, but as a Rubyist with 8 years of experience, I don't remember I've ever used the exit! method in my codebase. I think for people who use Ruby for scripting they should be familiar with it. But Rails or web-focused Ruby developers may not be familiar with this method either.
TBH, when I saw exit the first thing that came into my mind was the exit command in pry or irb. That's why I initially proposed exit! in the issue 😂
There was a problem hiding this comment.
BTW, maybe pry and irb's exit command is only eval "exit" string and calls Kernel#exit method by eval.
There was a problem hiding this comment.
In pry, there's an exit command class, which I always thought is the source of the exit command. But when I check the source of exit inside the repl, I can only see
> show-source exit
From: process.c (C Method):
Owner: Kernel
Visibility: private
Signature: exit(*arg1)
Number of lines: 5
static VALUE
f_exit(int c, const VALUE *a, VALUE _)
{
return rb_f_exit(c, a);
}
This is mind blowing 🤯
Show more pretty backtrace like:
```
(rdbg) bt
=>#0 block{|i=0, j=nil|} (3 levels) in foo at ~/src/rb/target.rb:12
#1 [C] Integer#times at ~/src/rb/target.rb:11
#2 rescue in rescue in block (2 levels) in foo at ~/src/rb/target.rb:11
#3 rescue in block (2 levels) in foo at ~/src/rb/target.rb:8
#4 block (2 levels) in foo at ~/src/rb/target.rb:5
ruby#5 [C] Integer#times at ~/src/rb/target.rb:4
ruby#6 block{|e=2|} in foo at ~/src/rb/target.rb:4
ruby#7 [C] Range#each at ~/src/rb/target.rb:3
ruby#8 [C] Enumerable#map at ~/src/rb/target.rb:3
ruby#9 Object#foo(a=3) at ~/src/rb/target.rb:3
ruby#10 <main> at ~/src/rb/target.rb:20
```
Remove redundant raw detach test
Closes #6
exitis removedqquitq!quit!killkill!