ruby-debug-ide 0.1.2 → 0.1.3
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/lib/ruby-debug/commands/stepping.rb +12 -9
- metadata +2 -2
@@ -1,15 +1,15 @@
|
|
1
1
|
module Debugger
|
2
|
-
class NextCommand < Command # :nodoc
|
2
|
+
class NextCommand < Command # :nodoc:
|
3
3
|
self.need_context = true
|
4
4
|
|
5
5
|
def regexp
|
6
|
-
/^\s*n(?:ext)?(
|
6
|
+
/^\s*n(?:ext)?([+-])?(?:\s+(\d+))?$/
|
7
7
|
end
|
8
8
|
|
9
9
|
def execute
|
10
|
-
|
11
|
-
|
12
|
-
@state.context.step_over steps,
|
10
|
+
force = @match[1] == '+'
|
11
|
+
steps = @match[2] ? @match[2].to_i : 1
|
12
|
+
@state.context.step_over steps, @state.frame_pos, force
|
13
13
|
@state.proceed
|
14
14
|
end
|
15
15
|
|
@@ -20,7 +20,8 @@ module Debugger
|
|
20
20
|
|
21
21
|
def help(cmd)
|
22
22
|
%{
|
23
|
-
n[ext][
|
23
|
+
n[ext][+][ nnn]\tstep over once or nnn times,
|
24
|
+
\t\t'+' forces to move to another line
|
24
25
|
}
|
25
26
|
end
|
26
27
|
end
|
@@ -30,11 +31,13 @@ module Debugger
|
|
30
31
|
self.need_context = true
|
31
32
|
|
32
33
|
def regexp
|
33
|
-
/^\s*s(?:tep)?(?:\s+(\d+))?$/
|
34
|
+
/^\s*s(?:tep)?([+-])?(?:\s+(\d+))?$/
|
34
35
|
end
|
35
36
|
|
36
37
|
def execute
|
37
|
-
|
38
|
+
force = @match[1] == '+'
|
39
|
+
steps = @match[2] ? @match[2].to_i : 1
|
40
|
+
@state.context.step(steps, force)
|
38
41
|
@state.proceed
|
39
42
|
end
|
40
43
|
|
@@ -45,7 +48,7 @@ module Debugger
|
|
45
48
|
|
46
49
|
def help(cmd)
|
47
50
|
%{
|
48
|
-
s[tep][ nnn]\tstep (into methods)
|
51
|
+
s[tep][ nnn]\tstep (into methods) once or nnn times
|
49
52
|
}
|
50
53
|
end
|
51
54
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ruby-debug-ide
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2007-04-
|
6
|
+
version: 0.1.3
|
7
|
+
date: 2007-04-30 13:24:43 +02:00
|
8
8
|
summary: IDE interface for ruby-debug.
|
9
9
|
require_paths:
|
10
10
|
- lib
|