ruby-debug 0.10.5.rc1 → 0.10.5.rc2
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/ChangeLog +54 -0
- data/Rakefile +34 -239
- metadata +15 -182
- data/test/base/base.rb +0 -77
- data/test/base/binding.rb +0 -22
- data/test/base/catchpoint.rb +0 -19
- data/test/base/load.rb +0 -44
- data/test/base/reload_bug.rb +0 -8
- data/test/cli/commands/catchpoint_test.rb +0 -24
- data/test/cli/commands/unit/regexp.rb +0 -36
- data/test/config.yaml +0 -8
- data/test/data/annotate.cmd +0 -29
- data/test/data/annotate.right +0 -139
- data/test/data/at-exit.cmd +0 -4
- data/test/data/at-exit.right +0 -12
- data/test/data/break_bad.cmd +0 -16
- data/test/data/break_bad.right +0 -26
- data/test/data/break_loop_bug.cmd +0 -5
- data/test/data/break_loop_bug.right +0 -15
- data/test/data/break_tracelines.cmd +0 -9
- data/test/data/break_tracelines.right +0 -17
- data/test/data/breakpoints-basename.cmd +0 -2
- data/test/data/breakpoints-basename.right +0 -10
- data/test/data/breakpoints.cmd +0 -37
- data/test/data/breakpoints.right +0 -96
- data/test/data/brkpt-class-bug.cmd +0 -9
- data/test/data/brkpt-class-bug.right +0 -18
- data/test/data/catch.cmd +0 -18
- data/test/data/catch.right +0 -41
- data/test/data/condition.cmd +0 -29
- data/test/data/condition.right +0 -67
- data/test/data/continue_bad.cmd +0 -4
- data/test/data/continue_bad.right +0 -9
- 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 -3
- data/test/data/dollar-0a.right +0 -3
- data/test/data/dollar-0b.right +0 -3
- data/test/data/edit.cmd +0 -12
- data/test/data/edit.right +0 -19
- data/test/data/emacs_basic.cmd +0 -10
- data/test/data/emacs_basic.right +0 -24
- data/test/data/enable.cmd +0 -20
- data/test/data/enable.right +0 -36
- data/test/data/except-bug1.cmd +0 -7
- data/test/data/except-bug1.right +0 -13
- data/test/data/file-with-space.cmd +0 -7
- data/test/data/file-with-space.right +0 -9
- data/test/data/finish.cmd +0 -16
- data/test/data/finish.right +0 -31
- data/test/data/frame.cmd +0 -29
- data/test/data/frame.right +0 -62
- 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-file-break.cmd +0 -4
- data/test/data/info-file-break.right +0 -11
- 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 -80
- data/test/data/linetrace-jruby.right +0 -23
- data/test/data/linetrace.cmd +0 -6
- data/test/data/linetrace.right +0 -32
- data/test/data/linetracep.cmd +0 -7
- data/test/data/linetracep.right +0 -25
- 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/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 -32
- 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 -9
- data/test/data/raise-jruby.right +0 -26
- data/test/data/raise.cmd +0 -11
- data/test/data/raise.right +0 -26
- data/test/data/save.cmd +0 -34
- data/test/data/save.right +0 -61
- data/test/data/setshow.cmd +0 -46
- data/test/data/setshow.right +0 -80
- 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-jruby.right +0 -14
- data/test/data/trace.right +0 -23
- data/test/example/a/example.rb +0 -1
- data/test/example/at-exit.rb +0 -3
- data/test/example/b/example.rb +0 -1
- data/test/example/bp_loop_issue.rb +0 -3
- data/test/example/breakpoints-basename.rb +0 -2
- data/test/example/brkpt-class-bug.rb +0 -8
- data/test/example/classes.rb +0 -11
- data/test/example/dollar-0.rb +0 -6
- data/test/example/except-bug1.rb +0 -4
- data/test/example/file with space.rb +0 -1
- data/test/example/gcd.rb +0 -18
- data/test/example/info-var-bug.rb +0 -47
- data/test/example/info-var-bug2.rb +0 -2
- data/test/example/null.rb +0 -1
- data/test/example/output.rb +0 -2
- data/test/example/pm-bug.rb +0 -3
- data/test/example/pm.rb +0 -11
- data/test/example/raise.rb +0 -3
- data/test/gcd-dbg-nox.rb +0 -31
- data/test/gcd-dbg.rb +0 -30
- data/test/helper.rb +0 -167
- data/test/pm-base.rb +0 -22
- data/test/rdebug-save.1 +0 -7
- data/test/tdebug.rb +0 -252
- data/test/test-annotate.rb +0 -13
- data/test/test-at-exit.rb +0 -13
- data/test/test-break-bad.rb +0 -25
- data/test/test-breakpoints.rb +0 -24
- data/test/test-brkpt-class-bug.rb +0 -13
- data/test/test-catch.rb +0 -13
- data/test/test-condition.rb +0 -13
- data/test/test-ctrl.rb +0 -55
- data/test/test-display.rb +0 -14
- data/test/test-dollar-0.rb +0 -33
- data/test/test-edit.rb +0 -14
- data/test/test-emacs-basic.rb +0 -13
- data/test/test-enable.rb +0 -13
- data/test/test-except-bug1.rb +0 -16
- data/test/test-file-with-space.rb +0 -18
- data/test/test-finish.rb +0 -22
- data/test/test-frame.rb +0 -28
- data/test/test-help.rb +0 -60
- data/test/test-hist.rb +0 -64
- data/test/test-info-thread.rb +0 -24
- data/test/test-info-var.rb +0 -30
- data/test/test-info.rb +0 -27
- data/test/test-init.rb +0 -49
- data/test/test-list.rb +0 -14
- data/test/test-method.rb +0 -20
- data/test/test-output.rb +0 -13
- data/test/test-pm.rb +0 -37
- data/test/test-quit.rb +0 -13
- data/test/test-raise.rb +0 -13
- data/test/test-save.rb +0 -22
- data/test/test-setshow.rb +0 -13
- data/test/test-source.rb +0 -13
- data/test/test-stepping.rb +0 -14
- data/test/test-trace.rb +0 -40
- data/test/thread1.rb +0 -26
- data/test/trunc-call.rb +0 -31
data/test/data/list.right
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
gcd.rb:4
|
|
2
|
-
def gcd(a, b)
|
|
3
|
-
# # ********************************************************
|
|
4
|
-
# # This tests the 'list' command.
|
|
5
|
-
# # ********************************************************
|
|
6
|
-
# set basename on
|
|
7
|
-
basename is on.
|
|
8
|
-
# list
|
|
9
|
-
[-1, 8] in gcd.rb
|
|
10
|
-
1 #!/usr/bin/env ruby
|
|
11
|
-
2
|
|
12
|
-
3 # GCD. We assume positive numbers
|
|
13
|
-
=> 4 def gcd(a, b)
|
|
14
|
-
5 # Make: a <= b
|
|
15
|
-
6 if a > b
|
|
16
|
-
7 a, b = [b, a]
|
|
17
|
-
8 end
|
|
18
|
-
# list
|
|
19
|
-
[9, 18] in gcd.rb
|
|
20
|
-
9
|
|
21
|
-
10 return nil if a <= 0
|
|
22
|
-
11
|
|
23
|
-
12 if a == 1 or b-a == 0
|
|
24
|
-
13 return a
|
|
25
|
-
14 end
|
|
26
|
-
15 return gcd(b-a, a)
|
|
27
|
-
16 end
|
|
28
|
-
17
|
|
29
|
-
18 gcd(3,5)
|
|
30
|
-
# list
|
|
31
|
-
[9, 18] in gcd.rb
|
|
32
|
-
9
|
|
33
|
-
10 return nil if a <= 0
|
|
34
|
-
11
|
|
35
|
-
12 if a == 1 or b-a == 0
|
|
36
|
-
13 return a
|
|
37
|
-
14 end
|
|
38
|
-
15 return gcd(b-a, a)
|
|
39
|
-
16 end
|
|
40
|
-
17
|
|
41
|
-
18 gcd(3,5)
|
|
42
|
-
# list
|
|
43
|
-
[9, 18] in gcd.rb
|
|
44
|
-
9
|
|
45
|
-
10 return nil if a <= 0
|
|
46
|
-
11
|
|
47
|
-
12 if a == 1 or b-a == 0
|
|
48
|
-
13 return a
|
|
49
|
-
14 end
|
|
50
|
-
15 return gcd(b-a, a)
|
|
51
|
-
16 end
|
|
52
|
-
17
|
|
53
|
-
18 gcd(3,5)
|
|
54
|
-
# list -
|
|
55
|
-
[-1, 8] in gcd.rb
|
|
56
|
-
1 #!/usr/bin/env ruby
|
|
57
|
-
2
|
|
58
|
-
3 # GCD. We assume positive numbers
|
|
59
|
-
=> 4 def gcd(a, b)
|
|
60
|
-
5 # Make: a <= b
|
|
61
|
-
6 if a > b
|
|
62
|
-
7 a, b = [b, a]
|
|
63
|
-
8 end
|
|
64
|
-
# list -
|
|
65
|
-
[-1, 8] in gcd.rb
|
|
66
|
-
1 #!/usr/bin/env ruby
|
|
67
|
-
2
|
|
68
|
-
3 # GCD. We assume positive numbers
|
|
69
|
-
=> 4 def gcd(a, b)
|
|
70
|
-
5 # Make: a <= b
|
|
71
|
-
6 if a > b
|
|
72
|
-
7 a, b = [b, a]
|
|
73
|
-
8 end
|
|
74
|
-
# list -
|
|
75
|
-
[-1, 8] in gcd.rb
|
|
76
|
-
1 #!/usr/bin/env ruby
|
|
77
|
-
2
|
|
78
|
-
3 # GCD. We assume positive numbers
|
|
79
|
-
=> 4 def gcd(a, b)
|
|
80
|
-
5 # Make: a <= b
|
|
81
|
-
6 if a > b
|
|
82
|
-
7 a, b = [b, a]
|
|
83
|
-
8 end
|
|
84
|
-
# list -
|
|
85
|
-
[-1, 8] in gcd.rb
|
|
86
|
-
1 #!/usr/bin/env ruby
|
|
87
|
-
2
|
|
88
|
-
3 # GCD. We assume positive numbers
|
|
89
|
-
=> 4 def gcd(a, b)
|
|
90
|
-
5 # Make: a <= b
|
|
91
|
-
6 if a > b
|
|
92
|
-
7 a, b = [b, a]
|
|
93
|
-
8 end
|
|
94
|
-
# list 1
|
|
95
|
-
[-4, 5] in gcd.rb
|
|
96
|
-
1 #!/usr/bin/env ruby
|
|
97
|
-
2
|
|
98
|
-
3 # GCD. We assume positive numbers
|
|
99
|
-
=> 4 def gcd(a, b)
|
|
100
|
-
5 # Make: a <= b
|
|
101
|
-
# list 20
|
|
102
|
-
[15, 18] in gcd.rb
|
|
103
|
-
15 return gcd(b-a, a)
|
|
104
|
-
16 end
|
|
105
|
-
17
|
|
106
|
-
18 gcd(3,5)
|
|
107
|
-
# set listsize 5
|
|
108
|
-
Number of source lines to list by default is 5.
|
|
109
|
-
# list 5
|
|
110
|
-
[3, 7] in gcd.rb
|
|
111
|
-
3 # GCD. We assume positive numbers
|
|
112
|
-
=> 4 def gcd(a, b)
|
|
113
|
-
5 # Make: a <= b
|
|
114
|
-
6 if a > b
|
|
115
|
-
7 a, b = [b, a]
|
|
116
|
-
# list =
|
|
117
|
-
[2, 6] in gcd.rb
|
|
118
|
-
2
|
|
119
|
-
3 # GCD. We assume positive numbers
|
|
120
|
-
=> 4 def gcd(a, b)
|
|
121
|
-
5 # Make: a <= b
|
|
122
|
-
6 if a > b
|
|
123
|
-
# list 3-4
|
|
124
|
-
[3, 4] in gcd.rb
|
|
125
|
-
3 # GCD. We assume positive numbers
|
|
126
|
-
=> 4 def gcd(a, b)
|
|
127
|
-
#
|
data/test/data/method.cmd
DELETED
data/test/data/method.right
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
classes.rb:1
|
|
2
|
-
class Mine
|
|
3
|
-
# # ********************************************************
|
|
4
|
-
# # This tests the 'method' command
|
|
5
|
-
# # ********************************************************
|
|
6
|
-
# set debuggertesting on
|
|
7
|
-
Currently testing the debugger is on.
|
|
8
|
-
# set autoeval off
|
|
9
|
-
autoeval is off.
|
|
10
|
-
# b 11
|
|
11
|
-
Breakpoint 1 file classes.rb, line 11
|
|
12
|
-
# c
|
|
13
|
-
Breakpoint 1 at classes.rb:11
|
|
14
|
-
classes.rb:11
|
|
15
|
-
metoo = Mine(new)
|
|
16
|
-
# method Mine
|
|
17
|
-
mymethod
|
|
18
|
-
|
|
19
|
-
# m iv me
|
|
20
|
-
@myvar = "init"
|
|
21
|
-
# quit
|
data/test/data/methodsig.cmd
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# ********************************************************
|
|
2
|
-
# This tests the 'method' command
|
|
3
|
-
# ********************************************************
|
|
4
|
-
set debuggertesting on
|
|
5
|
-
set autoeval off
|
|
6
|
-
b 3
|
|
7
|
-
c
|
|
8
|
-
method sig initialize
|
|
9
|
-
method sig mymethod
|
|
10
|
-
quit
|
data/test/data/methodsig.right
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
classes.rb:1
|
|
2
|
-
class Mine
|
|
3
|
-
# # ********************************************************
|
|
4
|
-
# # This tests the 'method' command
|
|
5
|
-
# # ********************************************************
|
|
6
|
-
# set debuggertesting on
|
|
7
|
-
Currently testing the debugger is on.
|
|
8
|
-
# set autoeval off
|
|
9
|
-
autoeval is off.
|
|
10
|
-
# b 3
|
|
11
|
-
Breakpoint 1 file ./classes.rb, line 3
|
|
12
|
-
# c
|
|
13
|
-
Breakpoint 1 at classes.rb:3
|
|
14
|
-
classes.rb:3
|
|
15
|
-
@myvar = 'init'
|
|
16
|
-
# method sig initialize
|
|
17
|
-
Mine#initialize()
|
|
18
|
-
# method sig mymethod
|
|
19
|
-
Mine#mymethod(a, b=5, &block)
|
|
20
|
-
# quit
|
data/test/data/noquit.right
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
The program has finished and will be restarted.
|
data/test/data/output.cmd
DELETED
data/test/data/output.right
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
starting
|
|
2
|
-
stopped
|
|
3
|
-
breakpoints
|
|
4
|
-
No breakpoints.
|
|
5
|
-
|
|
6
|
-
stack
|
|
7
|
-
--> #0 at line example/output.rb:1
|
|
8
|
-
|
|
9
|
-
variables
|
|
10
|
-
self = main
|
|
11
|
-
|
|
12
|
-
source example/output.rb:1
|
|
13
|
-
puts "one"
|
|
14
|
-
# # ********************************************************
|
|
15
|
-
# # This tests the "starting" annotation
|
|
16
|
-
# # ********************************************************
|
|
17
|
-
# step
|
|
18
|
-
starting
|
|
19
|
-
one
|
|
20
|
-
stopped
|
|
21
|
-
stack
|
|
22
|
-
--> #0 at line example/output.rb:2
|
|
23
|
-
|
|
24
|
-
variables
|
|
25
|
-
self = main
|
|
26
|
-
|
|
27
|
-
source example/output.rb:2
|
|
28
|
-
puts "two"
|
|
29
|
-
# step
|
|
30
|
-
starting
|
|
31
|
-
two
|
data/test/data/pm-bug.cmd
DELETED
data/test/data/pm-bug.right
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
pm-bug.rb:1
|
|
2
|
-
a = 1
|
|
3
|
-
# # ********************************************************
|
|
4
|
-
# # This tests the edit command
|
|
5
|
-
# # ********************************************************
|
|
6
|
-
# set debuggertesting on
|
|
7
|
-
Currently testing the debugger is on.
|
|
8
|
-
# # Tracker #22118
|
|
9
|
-
# i v
|
|
10
|
-
a = nil
|
|
11
|
-
self = main
|
|
12
|
-
# quit
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
pm.rb:3
|
|
2
|
-
def zero_div
|
|
3
|
-
# # ******************************************************
|
|
4
|
-
# # This tests running "next" over code that post-mortems
|
|
5
|
-
# # ******************************************************
|
|
6
|
-
# set debuggertesting on
|
|
7
|
-
Currently testing the debugger is on.
|
|
8
|
-
# next 2
|
|
9
|
-
pm.rb:8
|
|
10
|
-
zero_div
|
|
11
|
-
# next
|
|
12
|
-
pm.rb:5
|
|
13
|
-
1/0
|
|
14
|
-
# quit
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
pm.rb:3
|
|
2
|
-
def zero_div
|
|
3
|
-
# # ***************************************************
|
|
4
|
-
# # This tests post-mortem handling.
|
|
5
|
-
# # ***************************************************
|
|
6
|
-
# set debuggertesting on
|
|
7
|
-
Currently testing the debugger is on.
|
|
8
|
-
# continue
|
|
9
|
-
pm.rb:5
|
|
10
|
-
1/0
|
|
11
|
-
# # Should have got a divide by 0 error
|
|
12
|
-
# info program
|
|
13
|
-
The program crashed.
|
|
14
|
-
Exception: #<ZeroDivisionError: divided by 0>
|
|
15
|
-
# where
|
|
16
|
-
--> #0 / at line pm.rb:5
|
|
17
|
-
#1 at line pm.rb:8
|
|
18
|
-
# up
|
|
19
|
-
#1 at line pm.rb:8
|
|
20
|
-
# p x
|
|
21
|
-
2
|
|
22
|
-
# help
|
|
23
|
-
Type 'help <command-name>' for help on a specific command
|
|
24
|
-
|
|
25
|
-
Available commands:
|
|
26
|
-
backtrace delete enable info p reload source up
|
|
27
|
-
break disable eval irb pp restart thread var
|
|
28
|
-
catch display exit kill ps save tmate where
|
|
29
|
-
condition down frame list putl set trace
|
|
30
|
-
continue edit help method quit show undisplay
|
|
31
|
-
|
|
32
|
-
# quit
|
data/test/data/post-mortem.cmd
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# ***************************************************
|
|
2
|
-
# This tests post-mortem handling.
|
|
3
|
-
# ***************************************************
|
|
4
|
-
set debuggertesting on
|
|
5
|
-
continue
|
|
6
|
-
# Should have got a divide by 0 error
|
|
7
|
-
info program
|
|
8
|
-
where
|
|
9
|
-
up
|
|
10
|
-
p x
|
|
11
|
-
help
|
|
12
|
-
quit
|
|
13
|
-
|
data/test/data/post-mortem.right
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
pm.rb:3
|
|
2
|
-
def zero_div
|
|
3
|
-
# # ***************************************************
|
|
4
|
-
# # This tests post-mortem handling.
|
|
5
|
-
# # ***************************************************
|
|
6
|
-
# set debuggertesting on
|
|
7
|
-
Currently testing the debugger is on.
|
|
8
|
-
# continue
|
|
9
|
-
pm.rb:5
|
|
10
|
-
1/0
|
|
11
|
-
# # Should have got a divide by 0 error
|
|
12
|
-
# info program
|
|
13
|
-
The program crashed.
|
|
14
|
-
Exception: #<ZeroDivisionError: divided by 0>
|
|
15
|
-
# where
|
|
16
|
-
--> #0 / at line pm.rb:5
|
|
17
|
-
#1 at line pm.rb:8
|
|
18
|
-
# up
|
|
19
|
-
#1 at line pm.rb:8
|
|
20
|
-
# p x
|
|
21
|
-
2
|
|
22
|
-
# help
|
|
23
|
-
Type 'help <command-name>' for help on a specific command
|
|
24
|
-
|
|
25
|
-
Available commands:
|
|
26
|
-
backtrace delete enable info p reload source var
|
|
27
|
-
break disable eval irb pp restart thread where
|
|
28
|
-
catch display exit kill ps save trace
|
|
29
|
-
condition down frame list putl set undisplay
|
|
30
|
-
continue edit help method quit show up
|
|
31
|
-
|
|
32
|
-
# quit
|
data/test/data/quit.cmd
DELETED
data/test/data/quit.right
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
gcd.rb:4
|
|
2
|
-
def gcd(a, b)
|
|
3
|
-
# # ***************************************************
|
|
4
|
-
# # This tests the quit.
|
|
5
|
-
# # ***************************************************
|
|
6
|
-
# set debuggertesting on
|
|
7
|
-
Currently testing the debugger is on.
|
|
8
|
-
# # FIXME need to test --no-quit.
|
|
9
|
-
# quit
|
data/test/data/raise-jruby.right
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
raise.rb:3
|
|
2
|
-
raise "abc"
|
|
3
|
-
# # ********************************************************
|
|
4
|
-
# # This tests that the debugger doesn't step into itself
|
|
5
|
-
# # when the application doesn't terminate the right way.
|
|
6
|
-
# # ********************************************************
|
|
7
|
-
# set debuggertesting on
|
|
8
|
-
Currently testing the debugger is on.
|
|
9
|
-
# catch x
|
|
10
|
-
NameError Exception: undefined local variable or method `x' for main:Object
|
|
11
|
-
# catch ZeroDivisionError
|
|
12
|
-
Catch exception ZeroDivisionError.
|
|
13
|
-
# info catch
|
|
14
|
-
ZeroDivisionError
|
|
15
|
-
# catch 5
|
|
16
|
-
Warning 5 is not known to be a Class
|
|
17
|
-
Catch exception 5.
|
|
18
|
-
# step
|
|
19
|
-
./example/raise.rb:3:in `(root)'
|
|
20
|
-
org/jruby/debug/RubyDebugger.java:204:in `debug_load'
|
|
21
|
-
./example/raise.rb:61:in `debug_program'
|
|
22
|
-
./tdebug.rb:251:in `(root)'
|
|
23
|
-
org/jruby/RubyKernel.java:1063:in `load'
|
|
24
|
-
./tdebug.rb:23:in `runner'
|
|
25
|
-
../rdbg.rb:32:in `(root)'
|
|
26
|
-
Uncaught exception: abc
|
data/test/data/raise.cmd
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# ********************************************************
|
|
2
|
-
# This tests that the debugger doesn't step into itself
|
|
3
|
-
# when the application doesn't terminate the right way.
|
|
4
|
-
# ********************************************************
|
|
5
|
-
set debuggertesting on
|
|
6
|
-
catch x
|
|
7
|
-
catch ZeroDivisionError
|
|
8
|
-
info catch
|
|
9
|
-
catch 5
|
|
10
|
-
step
|
|
11
|
-
quit
|
data/test/data/raise.right
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
raise.rb:3
|
|
2
|
-
raise "abc"
|
|
3
|
-
# # ********************************************************
|
|
4
|
-
# # This tests that the debugger doesn't step into itself
|
|
5
|
-
# # when the application doesn't terminate the right way.
|
|
6
|
-
# # ********************************************************
|
|
7
|
-
# set debuggertesting on
|
|
8
|
-
Currently testing the debugger is on.
|
|
9
|
-
# catch x
|
|
10
|
-
NameError Exception: undefined local variable or method `x' for main:Object
|
|
11
|
-
# catch ZeroDivisionError
|
|
12
|
-
Catch exception ZeroDivisionError.
|
|
13
|
-
# info catch
|
|
14
|
-
ZeroDivisionError
|
|
15
|
-
# catch 5
|
|
16
|
-
Warning 5 is not known to be a Class
|
|
17
|
-
Catch exception 5.
|
|
18
|
-
# step
|
|
19
|
-
./example/raise.rb:3
|
|
20
|
-
./tdebug.rb:61:in `debug_load'
|
|
21
|
-
./tdebug.rb:61:in `debug_program'
|
|
22
|
-
./tdebug.rb:251
|
|
23
|
-
../rdbg.rb:23:in `load'
|
|
24
|
-
../rdbg.rb:23:in `runner'
|
|
25
|
-
../rdbg.rb:32
|
|
26
|
-
Uncaught exception: abc
|