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.
@@ -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)?(?:\s+(\d+))?(?:\s+(\d+))?$/
6
+ /^\s*n(?:ext)?([+-])?(?:\s+(\d+))?$/
7
7
  end
8
8
 
9
9
  def execute
10
- steps = @match[1] ? @match[1].to_i : 1
11
- target_frame = @match[2] ? (@match[2].to_i() -1) : @state.frame_pos
12
- @state.context.step_over steps, target_frame
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][nl] [tf]\tgo over n lines, default is one, go to target frame tf (1-based)
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
- @state.context.stop_next = @match[1] ? @match[1].to_i : 1
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) one line or till line nnn
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.2
7
- date: 2007-04-12 16:06:05 +02:00
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