ruby-debug 0.5 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +8 -1
- data/ext/ruby_debug.c +1 -1
- data/lib/ruby-debug/commands/irb.rb +18 -12
- metadata +2 -2
data/CHANGES
CHANGED
@@ -1,6 +1,13 @@
|
|
1
|
+
0.5.1
|
2
|
+
- Bugfixes.
|
3
|
+
|
4
|
+
0.5
|
5
|
+
- Added post-mortem debugging
|
6
|
+
- Added 'irb' command.
|
7
|
+
|
1
8
|
0.4.5
|
2
9
|
- Fixed debug_method when applied to setter.
|
3
|
-
- Added reload command which can be used to reload source code in case it's been changed.
|
10
|
+
- Added 'reload' command which can be used to reload source code in case it's been changed.
|
4
11
|
- Added Debugger.reload_source_on_change option (true, by default) which controls whether ruby-debug should keep
|
5
12
|
track of the source files modification times and reload them if they've been changed.
|
6
13
|
|
data/ext/ruby_debug.c
CHANGED
@@ -1,8 +1,14 @@
|
|
1
1
|
require 'irb'
|
2
2
|
module IRB # :nodoc:
|
3
3
|
def self.start_session(binding)
|
4
|
-
|
5
|
-
|
4
|
+
unless @__initialized
|
5
|
+
args = ARGV
|
6
|
+
ARGV.replace(ARGV.dup)
|
7
|
+
IRB.setup(nil)
|
8
|
+
ARGV.replace(args)
|
9
|
+
@__initialized = true
|
10
|
+
end
|
11
|
+
|
6
12
|
workspace = WorkSpace.new(binding)
|
7
13
|
|
8
14
|
irb = Irb.new(workspace)
|
@@ -33,17 +39,17 @@ module Debugger
|
|
33
39
|
end
|
34
40
|
IRB.start_session(@state.binding)
|
35
41
|
end
|
36
|
-
end
|
37
|
-
|
38
|
-
class << self
|
39
|
-
def help_command
|
40
|
-
'irb'
|
41
|
-
end
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
irb
|
46
|
-
|
43
|
+
class << self
|
44
|
+
def help_command
|
45
|
+
'irb'
|
46
|
+
end
|
47
|
+
|
48
|
+
def help(cmd)
|
49
|
+
%{
|
50
|
+
irb\tstarts an IRB session. (EXPERIMENTAL)
|
51
|
+
}
|
52
|
+
end
|
47
53
|
end
|
48
54
|
end
|
49
55
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ruby-debug
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version:
|
7
|
-
date: 2006-12-20
|
6
|
+
version: 0.5.1
|
7
|
+
date: 2006-12-20 21:01:48 -05:00
|
8
8
|
summary: Fast Ruby debugger
|
9
9
|
require_paths:
|
10
10
|
- lib
|