debugger 1.2.4 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +14 -0
- data/.travis.yml +0 -1
- data/CHANGELOG.md +9 -0
- data/Gemfile +3 -0
- data/README.md +2 -0
- data/Rakefile +3 -55
- data/debugger.gemspec +2 -0
- data/lib/debugger/version.rb +1 -1
- data/lib/ruby-debug-base.rb +3 -1
- data/lib/ruby-debug/commands/irb.rb +1 -1
- data/lib/ruby-debug/commands/jump.rb +1 -1
- data/lib/ruby-debug/commands/method.rb +1 -1
- data/lib/ruby-debug/commands/show.rb +1 -1
- data/lib/ruby-debug/commands/trace.rb +2 -2
- data/lib/ruby-debug/commands/variables.rb +3 -3
- data/test/breakpoints_test.rb +365 -0
- data/test/conditions_test.rb +76 -0
- data/test/continue_test.rb +28 -0
- data/test/display_test.rb +141 -0
- data/test/edit_test.rb +55 -0
- data/test/eval_test.rb +92 -0
- data/test/examples/breakpoint1.rb +15 -0
- data/test/examples/breakpoint2.rb +7 -0
- data/test/examples/conditions.rb +4 -0
- data/test/examples/continue.rb +4 -0
- data/test/examples/display.rb +5 -0
- data/test/examples/edit.rb +3 -0
- data/test/examples/edit2.rb +3 -0
- data/test/examples/eval.rb +4 -0
- data/test/examples/finish.rb +20 -0
- data/test/examples/frame.rb +31 -0
- data/test/examples/help.rb +2 -0
- data/test/examples/info.rb +48 -0
- data/test/examples/info2.rb +3 -0
- data/test/examples/irb.rb +6 -0
- data/test/examples/jump.rb +14 -0
- data/test/examples/kill.rb +2 -0
- data/test/examples/list.rb +12 -0
- data/test/examples/method.rb +15 -0
- data/test/examples/post_mortem.rb +19 -0
- data/test/examples/quit.rb +2 -0
- data/test/examples/reload.rb +6 -0
- data/test/examples/restart.rb +6 -0
- data/test/examples/save.rb +3 -0
- data/test/examples/set.rb +3 -0
- data/test/examples/set_annotate.rb +12 -0
- data/test/examples/settings.rb +1 -0
- data/test/examples/show.rb +2 -0
- data/test/examples/source.rb +3 -0
- data/test/examples/stepping.rb +21 -0
- data/test/examples/thread.rb +32 -0
- data/test/examples/tmate.rb +10 -0
- data/test/examples/trace.rb +7 -0
- data/test/examples/trace_threads.rb +20 -0
- data/test/examples/variables.rb +26 -0
- data/test/finish_test.rb +48 -0
- data/test/frame_test.rb +140 -0
- data/test/help_test.rb +50 -0
- data/test/info_test.rb +325 -0
- data/test/irb_test.rb +81 -0
- data/test/jump_test.rb +70 -0
- data/test/kill_test.rb +47 -0
- data/test/list_test.rb +145 -0
- data/test/method_test.rb +70 -0
- data/test/post_mortem_test.rb +25 -0
- data/test/quit_test.rb +55 -0
- data/test/reload_test.rb +43 -0
- data/test/restart_test.rb +143 -0
- data/test/save_test.rb +92 -0
- data/test/set_test.rb +163 -0
- data/test/show_test.rb +292 -0
- data/test/source_test.rb +44 -0
- data/test/stepping_test.rb +118 -0
- data/test/support/breakpoint.rb +12 -0
- data/test/support/context.rb +14 -0
- data/test/support/matchers.rb +67 -0
- data/test/support/mocha_extensions.rb +71 -0
- data/test/support/processor.rb +7 -0
- data/test/support/test_dsl.rb +205 -0
- data/test/support/test_interface.rb +66 -0
- data/test/test_helper.rb +8 -0
- data/test/thread_test.rb +122 -0
- data/test/tmate_test.rb +43 -0
- data/test/trace_test.rb +154 -0
- data/test/variables_test.rb +114 -0
- metadata +107 -158
- data/test/base/base.rb +0 -71
- data/test/base/binding.rb +0 -24
- data/test/base/catchpoint.rb +0 -22
- data/test/base/load.rb +0 -36
- data/test/bp_loop_issue.rb +0 -3
- data/test/classes.rb +0 -11
- data/test/config.yaml +0 -8
- data/test/data/annotate.cmd +0 -29
- data/test/data/annotate.right +0 -139
- data/test/data/break_bad.cmd +0 -18
- data/test/data/break_bad.right +0 -28
- data/test/data/break_loop_bug.cmd +0 -5
- data/test/data/break_loop_bug.right +0 -15
- data/test/data/breakpoints.cmd +0 -38
- data/test/data/breakpoints.right +0 -98
- data/test/data/catch.cmd +0 -20
- data/test/data/catch.right +0 -49
- data/test/data/catch2.cmd +0 -19
- data/test/data/catch2.right +0 -65
- data/test/data/catch3.cmd +0 -11
- data/test/data/catch3.right +0 -37
- data/test/data/condition.cmd +0 -28
- data/test/data/condition.right +0 -65
- data/test/data/ctrl.cmd +0 -23
- data/test/data/ctrl.right +0 -70
- data/test/data/display.cmd +0 -24
- data/test/data/display.right +0 -44
- data/test/data/dollar-0.right +0 -2
- data/test/data/dollar-0a.right +0 -2
- data/test/data/dollar-0b.right +0 -2
- data/test/data/edit.cmd +0 -12
- data/test/data/edit.right +0 -19
- data/test/data/emacs_basic.cmd +0 -43
- data/test/data/emacs_basic.right +0 -106
- data/test/data/enable.cmd +0 -20
- data/test/data/enable.right +0 -36
- data/test/data/finish.cmd +0 -16
- data/test/data/finish.right +0 -31
- data/test/data/frame.cmd +0 -26
- data/test/data/frame.right +0 -55
- data/test/data/help.cmd +0 -20
- data/test/data/help.right +0 -21
- data/test/data/history.right +0 -7
- data/test/data/info-thread.cmd +0 -13
- data/test/data/info-thread.right +0 -37
- data/test/data/info-var-bug2.cmd +0 -5
- data/test/data/info-var-bug2.right +0 -10
- data/test/data/info-var.cmd +0 -23
- data/test/data/info-var.right +0 -52
- data/test/data/info.cmd +0 -21
- data/test/data/info.right +0 -65
- data/test/data/jump.cmd +0 -16
- data/test/data/jump.right +0 -56
- data/test/data/jump2.cmd +0 -16
- data/test/data/jump2.right +0 -44
- data/test/data/linetrace.cmd +0 -6
- data/test/data/linetrace.right +0 -23
- data/test/data/list.cmd +0 -19
- data/test/data/list.right +0 -127
- data/test/data/method.cmd +0 -10
- data/test/data/method.right +0 -21
- data/test/data/methodsig.cmd +0 -10
- data/test/data/methodsig.right +0 -20
- data/test/data/next.cmd +0 -22
- data/test/data/next.right +0 -61
- data/test/data/noquit.right +0 -1
- data/test/data/output.cmd +0 -6
- data/test/data/output.right +0 -31
- data/test/data/pm-bug.cmd +0 -7
- data/test/data/pm-bug.right +0 -12
- data/test/data/post-mortem-next.cmd +0 -8
- data/test/data/post-mortem-next.right +0 -14
- data/test/data/post-mortem-osx.right +0 -31
- data/test/data/post-mortem.cmd +0 -13
- data/test/data/post-mortem.right +0 -32
- data/test/data/quit.cmd +0 -6
- data/test/data/quit.right +0 -0
- data/test/data/raise.cmd +0 -11
- data/test/data/raise.right +0 -23
- data/test/data/save.cmd +0 -34
- data/test/data/save.right +0 -59
- data/test/data/scope-var.cmd +0 -42
- data/test/data/scope-var.right +0 -587
- data/test/data/setshow.cmd +0 -56
- data/test/data/setshow.right +0 -98
- data/test/data/source.cmd +0 -5
- data/test/data/source.right +0 -15
- data/test/data/stepping.cmd +0 -21
- data/test/data/stepping.right +0 -50
- data/test/data/test-init-cygwin.right +0 -7
- data/test/data/test-init-osx.right +0 -4
- data/test/data/test-init.right +0 -5
- data/test/data/trace.right +0 -14
- data/test/dollar-0.rb +0 -5
- data/test/gcd-dbg-nox.rb +0 -30
- data/test/gcd-dbg.rb +0 -29
- data/test/gcd.rb +0 -18
- data/test/helper.rb +0 -142
- data/test/info-var-bug.rb +0 -47
- data/test/info-var-bug2.rb +0 -2
- data/test/jump.rb +0 -14
- data/test/jump2.rb +0 -27
- data/test/lib/commands/catchpoint_test.rb +0 -28
- data/test/lib/commands/unit/regexp.rb +0 -38
- data/test/next.rb +0 -18
- data/test/null.rb +0 -1
- data/test/output.rb +0 -2
- data/test/pm-base.rb +0 -17
- data/test/pm-bug.rb +0 -3
- data/test/pm-catch.rb +0 -12
- data/test/pm-catch2.rb +0 -27
- data/test/pm-catch3.rb +0 -47
- data/test/pm.rb +0 -11
- data/test/raise.rb +0 -3
- data/test/rdebug-save.1 +0 -7
- data/test/runall +0 -12
- data/test/scope-var.rb +0 -29
- data/test/tdebug.rb +0 -246
- data/test/test-annotate.rb +0 -24
- data/test/test-break-bad.rb +0 -36
- data/test/test-breakpoints.rb +0 -24
- data/test/test-catch.rb +0 -24
- data/test/test-catch2.rb +0 -24
- data/test/test-catch3.rb +0 -24
- data/test/test-condition.rb +0 -24
- data/test/test-ctrl.rb +0 -51
- data/test/test-display.rb +0 -25
- data/test/test-dollar-0.rb +0 -39
- data/test/test-edit.rb +0 -25
- data/test/test-emacs-basic.rb +0 -25
- data/test/test-enable.rb +0 -24
- data/test/test-finish.rb +0 -33
- data/test/test-frame.rb +0 -33
- data/test/test-help.rb +0 -54
- data/test/test-hist.rb +0 -65
- data/test/test-info-thread.rb +0 -31
- data/test/test-info-var.rb +0 -46
- data/test/test-info.rb +0 -25
- data/test/test-init.rb +0 -43
- data/test/test-jump.rb +0 -34
- data/test/test-list.rb +0 -24
- data/test/test-method.rb +0 -33
- data/test/test-next.rb +0 -24
- data/test/test-output.rb +0 -25
- data/test/test-quit.rb +0 -29
- data/test/test-raise.rb +0 -24
- data/test/test-remote.rb +0 -14
- data/test/test-save.rb +0 -30
- data/test/test-scope-var.rb +0 -24
- data/test/test-setshow.rb +0 -24
- data/test/test-source.rb +0 -24
- data/test/test-stepping.rb +0 -25
- data/test/test-trace.rb +0 -46
- data/test/thread1.rb +0 -25
- data/test/trunc-call.rb +0 -30
data/test/data/catch2.cmd
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# ***************************************************
|
2
|
-
# Test catch
|
3
|
-
# ***************************************************
|
4
|
-
set debuggertesting on
|
5
|
-
set autoeval off
|
6
|
-
set basename on
|
7
|
-
catch ZeroDivisionError
|
8
|
-
c
|
9
|
-
sk
|
10
|
-
break 27
|
11
|
-
c
|
12
|
-
jump -1
|
13
|
-
break 4
|
14
|
-
c
|
15
|
-
p arg = nil
|
16
|
-
c
|
17
|
-
jump 7
|
18
|
-
del 1
|
19
|
-
c
|
data/test/data/catch2.right
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
pm-catch2.rb:3
|
2
|
-
def bar(arg)
|
3
|
-
# # ***************************************************
|
4
|
-
# # Test catch
|
5
|
-
# # ***************************************************
|
6
|
-
# set debuggertesting on
|
7
|
-
Currently testing the debugger is on.
|
8
|
-
# set autoeval off
|
9
|
-
autoeval is off.
|
10
|
-
# set basename on
|
11
|
-
basename is on.
|
12
|
-
# catch ZeroDivisionError
|
13
|
-
Catch exception ZeroDivisionError.
|
14
|
-
# c
|
15
|
-
foo begin
|
16
|
-
bar begin
|
17
|
-
Catchpoint at pm-catch2.rb:5: `divided by 0' (ZeroDivisionError)
|
18
|
-
from tdebug.rb:61:in `debug_program'
|
19
|
-
from tdebug.rb:247:in `<top (required)>'
|
20
|
-
from ../rdbg.rb:23:in `load'
|
21
|
-
from ../rdbg.rb:23:in `runner'
|
22
|
-
from ../rdbg.rb:32:in `<main>'
|
23
|
-
pm-catch2.rb:5
|
24
|
-
1/0 if arg
|
25
|
-
# sk
|
26
|
-
ok
|
27
|
-
# break 27
|
28
|
-
Breakpoint 1 file ./pm-catch2.rb, line 27
|
29
|
-
# c
|
30
|
-
rescue
|
31
|
-
15
|
32
|
-
Breakpoint 1 at pm-catch2.rb:27
|
33
|
-
pm-catch2.rb:27
|
34
|
-
puts "done"
|
35
|
-
# jump -1
|
36
|
-
pm-catch2.rb:26
|
37
|
-
puts zero_div(10)
|
38
|
-
# break 4
|
39
|
-
Breakpoint 2 file ./pm-catch2.rb, line 4
|
40
|
-
# c
|
41
|
-
foo begin
|
42
|
-
Breakpoint 2 at pm-catch2.rb:4
|
43
|
-
pm-catch2.rb:4
|
44
|
-
puts "bar begin"
|
45
|
-
# p arg = nil
|
46
|
-
nil
|
47
|
-
# c
|
48
|
-
bar begin
|
49
|
-
Catchpoint at pm-catch2.rb:6: `ZeroDivisionError' (ZeroDivisionError)
|
50
|
-
from tdebug.rb:61:in `debug_program'
|
51
|
-
from tdebug.rb:247:in `<top (required)>'
|
52
|
-
from ../rdbg.rb:23:in `load'
|
53
|
-
from ../rdbg.rb:23:in `runner'
|
54
|
-
from ../rdbg.rb:32:in `<main>'
|
55
|
-
pm-catch2.rb:6
|
56
|
-
raise ZeroDivisionError
|
57
|
-
# jump 7
|
58
|
-
pm-catch2.rb:7
|
59
|
-
puts "bar end"
|
60
|
-
# del 1
|
61
|
-
# c
|
62
|
-
bar end
|
63
|
-
foo end
|
64
|
-
15
|
65
|
-
done
|
data/test/data/catch3.cmd
DELETED
data/test/data/catch3.right
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
pm-catch3.rb:3
|
2
|
-
def get_exception(arg)
|
3
|
-
# # ***************************************************
|
4
|
-
# # Test catch
|
5
|
-
# # ***************************************************
|
6
|
-
# set debuggertesting on
|
7
|
-
Currently testing the debugger is on.
|
8
|
-
# set autoeval off
|
9
|
-
autoeval is off.
|
10
|
-
# set basename on
|
11
|
-
basename is on.
|
12
|
-
# c
|
13
|
-
divide by zero
|
14
|
-
start1:foo begin:bar begin:foo ensure:zero_div rescue:
|
15
|
-
Catchpoint at pm-catch3.rb:15: `divided by 0' (ZeroDivisionError)
|
16
|
-
from tdebug.rb:61:in `debug_program'
|
17
|
-
from tdebug.rb:247:in `<top (required)>'
|
18
|
-
from ../rdbg.rb:23:in `load'
|
19
|
-
from ../rdbg.rb:23:in `runner'
|
20
|
-
from ../rdbg.rb:32:in `<main>'
|
21
|
-
pm-catch3.rb:15
|
22
|
-
1/0 if arg
|
23
|
-
# w
|
24
|
-
--> #0 Object.bar(arg#Fixnum) at line pm-catch3.rb:15
|
25
|
-
#1 at line pm-catch3.rb:34
|
26
|
-
#2 Object.foo(arg#Fixnum) at line pm-catch3.rb:24
|
27
|
-
#3 Object.zero_div(arg#Fixnum) at line pm-catch3.rb:34
|
28
|
-
#4 at line pm-catch3.rb:45
|
29
|
-
# p $var
|
30
|
-
"start2:foo begin:bar begin:"
|
31
|
-
# jump +4
|
32
|
-
pm-catch3.rb:19
|
33
|
-
$var = $var + "bar end:"
|
34
|
-
# c
|
35
|
-
7
|
36
|
-
start2:foo begin:bar begin:bar end:foo end:foo ensure:
|
37
|
-
done
|
data/test/data/condition.cmd
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# ********************************************************
|
2
|
-
# This tests primarily the condition command.
|
3
|
-
# In order to do this we need to run break, and disable
|
4
|
-
# ********************************************************
|
5
|
-
set debuggertesting on
|
6
|
-
set callstyle last
|
7
|
-
set autoeval off
|
8
|
-
break 6 if a > b
|
9
|
-
info break
|
10
|
-
condition 1
|
11
|
-
info break
|
12
|
-
break 12
|
13
|
-
condition 2 1 == a
|
14
|
-
# FIXME: should be able to catch error on:
|
15
|
-
# condition 2 if 1 == a
|
16
|
-
disable 1
|
17
|
-
continue
|
18
|
-
info break
|
19
|
-
p a
|
20
|
-
# Now test trying to enable an invalid breakpoint
|
21
|
-
break 6 if a >
|
22
|
-
info break
|
23
|
-
enable 3
|
24
|
-
info break
|
25
|
-
condition 3 a > 5
|
26
|
-
enable 3
|
27
|
-
info break
|
28
|
-
quit
|
data/test/data/condition.right
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
gcd.rb:4
|
2
|
-
def gcd(a, b)
|
3
|
-
# # ********************************************************
|
4
|
-
# # This tests primarily the condition command.
|
5
|
-
# # In order to do this we need to run break, and disable
|
6
|
-
# # ********************************************************
|
7
|
-
# set debuggertesting on
|
8
|
-
Currently testing the debugger is on.
|
9
|
-
# set callstyle last
|
10
|
-
Frame call-display style is last.
|
11
|
-
# set autoeval off
|
12
|
-
autoeval is off.
|
13
|
-
# break 6 if a > b
|
14
|
-
Breakpoint 1 file ./gcd.rb, line 6
|
15
|
-
# info break
|
16
|
-
Num Enb What
|
17
|
-
1 y at ./gcd.rb:6 if a > b
|
18
|
-
# condition 1
|
19
|
-
# info break
|
20
|
-
Num Enb What
|
21
|
-
1 y at ./gcd.rb:6
|
22
|
-
# break 12
|
23
|
-
Breakpoint 2 file ./gcd.rb, line 12
|
24
|
-
# condition 2 1 == a
|
25
|
-
# # FIXME: should be able to catch error on:
|
26
|
-
# # condition 2 if 1 == a
|
27
|
-
# disable 1
|
28
|
-
# continue
|
29
|
-
Breakpoint 2 at gcd.rb:12
|
30
|
-
gcd.rb:12
|
31
|
-
if a == 1 or b-a == 0
|
32
|
-
# info break
|
33
|
-
Num Enb What
|
34
|
-
1 n at ./gcd.rb:6
|
35
|
-
2 y at ./gcd.rb:12 if 1 == a
|
36
|
-
breakpoint already hit 1 time
|
37
|
-
# p a
|
38
|
-
1
|
39
|
-
# # Now test trying to enable an invalid breakpoint
|
40
|
-
# break 6 if a >
|
41
|
-
Breakpoint 3 file ./gcd.rb, line 6
|
42
|
-
*** Expression "a > " syntactically incorrect; breakpoint disabled.
|
43
|
-
# info break
|
44
|
-
Num Enb What
|
45
|
-
1 n at ./gcd.rb:6
|
46
|
-
2 y at ./gcd.rb:12 if 1 == a
|
47
|
-
breakpoint already hit 1 time
|
48
|
-
3 n at ./gcd.rb:6 if a >
|
49
|
-
# enable 3
|
50
|
-
*** Expression "a > " syntactically incorrect; breakpoint remains disabled.
|
51
|
-
# info break
|
52
|
-
Num Enb What
|
53
|
-
1 n at ./gcd.rb:6
|
54
|
-
2 y at ./gcd.rb:12 if 1 == a
|
55
|
-
breakpoint already hit 1 time
|
56
|
-
3 n at ./gcd.rb:6 if a >
|
57
|
-
# condition 3 a > 5
|
58
|
-
# enable 3
|
59
|
-
# info break
|
60
|
-
Num Enb What
|
61
|
-
1 n at ./gcd.rb:6
|
62
|
-
2 y at ./gcd.rb:12 if 1 == a
|
63
|
-
breakpoint already hit 1 time
|
64
|
-
3 y at ./gcd.rb:6 if a > 5
|
65
|
-
# quit
|
data/test/data/ctrl.cmd
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
set debuggertesting on
|
2
|
-
set width 80
|
3
|
-
help
|
4
|
-
help info
|
5
|
-
info args
|
6
|
-
info breakpoints
|
7
|
-
info display
|
8
|
-
info program
|
9
|
-
info global_variables
|
10
|
-
info line
|
11
|
-
info locals
|
12
|
-
info stack
|
13
|
-
info threads
|
14
|
-
info variables
|
15
|
-
eval 1+2
|
16
|
-
help show
|
17
|
-
set trace off
|
18
|
-
show trace
|
19
|
-
set trace on
|
20
|
-
set annotate 0
|
21
|
-
show annotate
|
22
|
-
|
23
|
-
|
data/test/data/ctrl.right
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
Currently testing the debugger is on.
|
2
|
-
width is 80.
|
3
|
-
Type 'help <command-name>' for help on a specific command
|
4
|
-
|
5
|
-
Available commands:
|
6
|
-
break edit help jump pp quit save skip
|
7
|
-
catch eval info kill ps reload set source
|
8
|
-
delete exit interrupt p putl restart show thread
|
9
|
-
|
10
|
-
Generic command for showing things about the program being debugged.
|
11
|
-
--
|
12
|
-
List of info subcommands:
|
13
|
-
--
|
14
|
-
info args -- Argument variables of current stack frame
|
15
|
-
info breakpoints -- Status of user-settable breakpoints
|
16
|
-
info catch -- Exceptions that can be caught in the current stack frame
|
17
|
-
info display -- Expressions to display when program stops
|
18
|
-
info file -- Info about a particular file read in
|
19
|
-
info files -- File names and timestamps of files read in
|
20
|
-
info global_variables -- Global variables
|
21
|
-
info instance_variables -- Instance variables of the current stack frame
|
22
|
-
info line -- Line number and file name of current position in source file
|
23
|
-
info locals -- Local variables of the current stack frame
|
24
|
-
info program -- Execution status of the program
|
25
|
-
info stack -- Backtrace of the stack
|
26
|
-
info thread -- List info about thread NUM
|
27
|
-
info threads -- information of currently-known threads
|
28
|
-
info variables -- Local and instance variables of the current stack frame
|
29
|
-
No frame selected.
|
30
|
-
info breakpoints not available here.
|
31
|
-
info display not available here.
|
32
|
-
The program being debugged is not being run.
|
33
|
-
info global_variables not available here.
|
34
|
-
info line not available here.
|
35
|
-
info line not available here.
|
36
|
-
info stack not available here.
|
37
|
-
info threads not available here.
|
38
|
-
info variables not available here.
|
39
|
-
3
|
40
|
-
Generic command for showing things about the debugger.
|
41
|
-
|
42
|
-
--
|
43
|
-
List of show subcommands:
|
44
|
-
--
|
45
|
-
show annotate -- Show annotation level
|
46
|
-
show args -- Show argument list to give program being debugged when it is started
|
47
|
-
show autoeval -- Show if unrecognized command are evaluated
|
48
|
-
show autolist -- Show if 'list' commands is run on breakpoints
|
49
|
-
show autoirb -- Show if IRB is invoked on debugger stops
|
50
|
-
show autoreload -- Show if source code is reloaded when changed
|
51
|
-
show basename -- Show if basename used in reporting files
|
52
|
-
show callstyle -- Show paramater style used showing call frames
|
53
|
-
show commands -- Show the history of commands you typed
|
54
|
-
show forcestep -- Show if sure 'next/step' forces move to a new line
|
55
|
-
show fullpath -- Show if full file names are displayed in frames
|
56
|
-
show history -- Generic command for showing command history parameters
|
57
|
-
show keep-frame-bindings -- Save frame binding on each call
|
58
|
-
show linetrace -- Show line execution tracing
|
59
|
-
show linetrace+ -- Show if consecutive lines should be different are shown in tracing
|
60
|
-
show listsize -- Show number of source lines to list by default
|
61
|
-
show port -- Show server port
|
62
|
-
show post-mortem -- Show whether we go into post-mortem debugging on an uncaught exception
|
63
|
-
show trace -- Show if a stack trace is displayed when 'eval' raises exception
|
64
|
-
show version -- Show what version of the debugger this is
|
65
|
-
show width -- Show the number of characters the debugger thinks are in a line
|
66
|
-
Displaying stack trace is off.
|
67
|
-
Displaying stack trace is off.
|
68
|
-
Displaying stack trace is on.
|
69
|
-
Annotation level is 0
|
70
|
-
Annotation level is 0
|
data/test/data/display.cmd
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# ***************************************************
|
2
|
-
# This tests display expressions.
|
3
|
-
# ***************************************************
|
4
|
-
set debuggertesting on
|
5
|
-
b 6
|
6
|
-
c
|
7
|
-
# Should be no display expression yet.
|
8
|
-
info display
|
9
|
-
display a
|
10
|
-
display b
|
11
|
-
disable display b
|
12
|
-
disable display 1
|
13
|
-
c
|
14
|
-
enable display b
|
15
|
-
enable display 1
|
16
|
-
undisplay a
|
17
|
-
undisplay 2
|
18
|
-
# Should have only one display expression.
|
19
|
-
info display
|
20
|
-
undisplay 1
|
21
|
-
# Now we have no more display expressions.
|
22
|
-
info display
|
23
|
-
q
|
24
|
-
|
data/test/data/display.right
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
gcd.rb:4
|
2
|
-
def gcd(a, b)
|
3
|
-
# # ***************************************************
|
4
|
-
# # This tests display expressions.
|
5
|
-
# # ***************************************************
|
6
|
-
# set debuggertesting on
|
7
|
-
Currently testing the debugger is on.
|
8
|
-
# b 6
|
9
|
-
Breakpoint 1 file ./gcd.rb, line 6
|
10
|
-
# c
|
11
|
-
Breakpoint 1 at gcd.rb:6
|
12
|
-
gcd.rb:6
|
13
|
-
if a > b
|
14
|
-
# # Should be no display expression yet.
|
15
|
-
# info display
|
16
|
-
There are no auto-display expressions now.
|
17
|
-
# display a
|
18
|
-
1: a = 3
|
19
|
-
# display b
|
20
|
-
2: b = 5
|
21
|
-
# disable display b
|
22
|
-
Disable display argument 'b' needs to be a number.
|
23
|
-
# disable display 1
|
24
|
-
# c
|
25
|
-
Breakpoint 1 at gcd.rb:6
|
26
|
-
2: b = 3
|
27
|
-
gcd.rb:6
|
28
|
-
if a > b
|
29
|
-
# enable display b
|
30
|
-
Enable display argument 'b' needs to be a number.
|
31
|
-
# enable display 1
|
32
|
-
# undisplay a
|
33
|
-
Undisplay argument 'a' needs to be a number.
|
34
|
-
# undisplay 2
|
35
|
-
# # Should have only one display expression.
|
36
|
-
# info display
|
37
|
-
Auto-display expressions now in effect:
|
38
|
-
Num Enb Expression
|
39
|
-
1: y a
|
40
|
-
# undisplay 1
|
41
|
-
# # Now we have no more display expressions.
|
42
|
-
# info display
|
43
|
-
There are no auto-display expressions now.
|
44
|
-
# q
|
data/test/data/dollar-0.right
DELETED
data/test/data/dollar-0a.right
DELETED
data/test/data/dollar-0b.right
DELETED
data/test/data/edit.cmd
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# ********************************************************
|
2
|
-
# This tests the edit command
|
3
|
-
# ********************************************************
|
4
|
-
set debuggertesting on
|
5
|
-
# Edit using current line position.
|
6
|
-
edit
|
7
|
-
edit gcd.rb:5
|
8
|
-
# File should not exist
|
9
|
-
edit foo
|
10
|
-
# Add space to the end of 'edit'
|
11
|
-
edit
|
12
|
-
quit
|
data/test/data/edit.right
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
gcd.rb:4
|
2
|
-
def gcd(a, b)
|
3
|
-
# # ********************************************************
|
4
|
-
# # This tests the edit command
|
5
|
-
# # ********************************************************
|
6
|
-
# set debuggertesting on
|
7
|
-
Currently testing the debugger is on.
|
8
|
-
# # Edit using current line position.
|
9
|
-
# edit
|
10
|
-
FAKE-EDITOR +4 ./gcd.rb
|
11
|
-
# edit gcd.rb:5
|
12
|
-
FAKE-EDITOR +5 gcd.rb
|
13
|
-
# # File should not exist
|
14
|
-
# edit foo
|
15
|
-
*** Invalid file/line number specification: foo
|
16
|
-
# # Add space to the end of 'edit'
|
17
|
-
# edit
|
18
|
-
FAKE-EDITOR +4 ./gcd.rb
|
19
|
-
# quit
|