Class: Byebug::SkipCommand
Overview
Implements byebug “skip” command
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map
Class Method Details
.description ⇒ Object
24
25
26
27
28
29
30
31
32
|
# File 'lib/byebug/commands/skip.rb', line 24
def description
%{
sk[ip]\tskip the next thrown exception
This is useful if you've explicitly caught an exception through the
"catch" command, and wish to pass the exception on to the code that
you're debugging.
}
end
|
.names ⇒ Object
20
21
22
|
# File 'lib/byebug/commands/skip.rb', line 20
def names
%w(skip)
end
|
Instance Method Details
#execute ⇒ Object
14
15
16
17
|
# File 'lib/byebug/commands/skip.rb', line 14
def execute
Byebug::skip_next_exception
print "ok\n"
end
|
#regexp ⇒ Object
7
8
9
10
11
12
|
# File 'lib/byebug/commands/skip.rb', line 7
def regexp
/ ^\s*
sk(?:ip)? \s*
$
/ix
end
|