ruby-debug-ide 0.4.4 → 0.4.5
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 +22 -0
- data/Rakefile +1 -1
- data/bin/rdebug-ide +2 -2
- data/lib/ruby-debug.rb +1 -1
- data/lib/ruby-debug/commands/catchpoint.rb +25 -9
- data/test/rd_test_base.rb +1 -1
- metadata +5 -3
data/ChangeLog
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
2009-03-12 11:38 Martin Krauskopf
|
2
|
+
|
3
|
+
* ChangeLog, Rakefile, doc/protocol-spec.texi, lib/ruby-debug.rb,
|
4
|
+
test/rd_test_base.rb: Oops. 0.4.5 was not released yet, so it is
|
5
|
+
the rigth version, not 0.4.6, reverting.
|
6
|
+
|
7
|
+
2009-03-12 11:31 Martin Krauskopf
|
8
|
+
|
9
|
+
* Rakefile, doc/protocol-spec.texi, lib/ruby-debug.rb,
|
10
|
+
lib/ruby-debug/commands/catchpoint.rb, test/rd_test_base.rb:
|
11
|
+
Possibility to remove catchpoints (patch by Chris Williams)
|
12
|
+
|
13
|
+
2009-02-03 09:34 Martin Krauskopf
|
14
|
+
|
15
|
+
* Rakefile, bin/rdebug-ide, doc/protocol-spec.texi,
|
16
|
+
lib/ruby-debug.rb, test/rd_test_base.rb: 1) bugfix: syntax error
|
17
|
+
with Ruby 1.9 (patch by Mikael Rudberg) 2) 0.4.5 territory
|
18
|
+
|
19
|
+
2009-01-14 07:19 Martin Krauskopf
|
20
|
+
|
21
|
+
* doc/protocol-spec.texi: completeng missing changes
|
22
|
+
|
1
23
|
2009-01-13 10:00 Martin Krauskopf
|
2
24
|
|
3
25
|
* Rakefile, doc/protocol-spec.texi, lib/ruby-debug.rb,
|
data/Rakefile
CHANGED
data/bin/rdebug-ide
CHANGED
@@ -23,8 +23,8 @@ Usage: rdebug-ide is supposed to be called from RDT or NetBeans. The command lin
|
|
23
23
|
EOB
|
24
24
|
opts.separator ""
|
25
25
|
opts.separator "Options:"
|
26
|
-
opts.on("-h", "--host HOST", "Host name used for remote debugging") {|options.host
|
27
|
-
opts.on("-p", "--port PORT", Integer, "Port used for remote debugging") {|options.port
|
26
|
+
opts.on("-h", "--host HOST", "Host name used for remote debugging") {|host| options.host = host}
|
27
|
+
opts.on("-p", "--port PORT", Integer, "Port used for remote debugging") {|port| options.port = port}
|
28
28
|
opts.on('--stop', 'stop when the script is loaded') {options.stop = true}
|
29
29
|
opts.on("-x", "--trace", "turn on line tracing") {options.tracing = true}
|
30
30
|
opts.on("-l", "--load-mode", "load mode (experimental)") {options.load_mode = true}
|
data/lib/ruby-debug.rb
CHANGED
@@ -119,7 +119,7 @@ module Debugger
|
|
119
119
|
unless RUBY_PLATFORM =~ /darwin/i # Mac OS X seems to have problem with 'localhost'
|
120
120
|
host ||= 'localhost' # nil does not seem to work for IPv6, localhost does
|
121
121
|
end
|
122
|
-
$stderr.printf "Fast Debugger (ruby-debug-ide 0.4.
|
122
|
+
$stderr.printf "Fast Debugger (ruby-debug-ide 0.4.5) listens on #{host}:#{port}\n"
|
123
123
|
server = TCPServer.new(host, port)
|
124
124
|
while (session = server.accept)
|
125
125
|
begin
|
@@ -3,20 +3,36 @@ module Debugger
|
|
3
3
|
self.control = true
|
4
4
|
|
5
5
|
def regexp
|
6
|
-
/^\s* cat(?:ch)?
|
6
|
+
/^\s* cat(?:ch)?
|
7
|
+
(?:\s+ (\S+))?
|
8
|
+
(?:\s+ (off))? \s* $/ix
|
7
9
|
end
|
8
10
|
|
9
11
|
def execute
|
10
|
-
|
11
|
-
|
12
|
+
excn = @match[1]
|
13
|
+
if not excn
|
14
|
+
# No args given.
|
12
15
|
errmsg "Exception class must be specified for 'catch' command"
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
16
|
+
elsif not @match[2]
|
17
|
+
# One arg given.
|
18
|
+
if 'off' == excn
|
19
|
+
Debugger.catchpoints.clear
|
20
|
+
else
|
21
|
+
binding = @state.context ? get_binding : TOPLEVEL_BINDING
|
22
|
+
unless debug_eval("#{excn}.is_a?(Class)", binding)
|
23
|
+
print_msg "Warning #{excn} is not known to be a Class"
|
24
|
+
end
|
25
|
+
Debugger.add_catchpoint(excn)
|
26
|
+
print_catchpoint_set(excn)
|
17
27
|
end
|
18
|
-
|
19
|
-
|
28
|
+
elsif @match[2] != 'off'
|
29
|
+
errmsg "Off expected. Got %s\n", @match[2]
|
30
|
+
elsif Debugger.catchpoints.member?(excn)
|
31
|
+
Debugger.catchpoints.delete(excn)
|
32
|
+
print_catchpoint_set(excn)
|
33
|
+
#print "Catch for exception %s removed.\n", excn
|
34
|
+
else
|
35
|
+
errmsg "Catch for exception %s not found.\n", excn
|
20
36
|
end
|
21
37
|
end
|
22
38
|
|
data/test/rd_test_base.rb
CHANGED
@@ -22,7 +22,7 @@ class RDTestBase < TestBase
|
|
22
22
|
cmd = "#{interpreter}"
|
23
23
|
cmd << " --debug" if jruby?
|
24
24
|
cmd << " -J-Xdebug -J-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y" if jruby? and debug_jruby?
|
25
|
-
cmd << " -I '#{File.dirname(script)}' #{@rdebug_ide} _0.4.
|
25
|
+
cmd << " -I '#{File.dirname(script)}' #{@rdebug_ide} _0.4.5_" +
|
26
26
|
(@verbose_server ? " -d" : "") +
|
27
27
|
" -p #{port} -- '#{script}'"
|
28
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-debug-ide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Barchfeld, Martin Krauskopf
|
@@ -9,7 +9,7 @@ autorequire: ruby-debug-base
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-03-12 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -72,6 +72,8 @@ files:
|
|
72
72
|
- test/rd_variables_test.rb
|
73
73
|
has_rdoc: false
|
74
74
|
homepage: http://rubyforge.org/projects/debug-commons/
|
75
|
+
licenses: []
|
76
|
+
|
75
77
|
post_install_message:
|
76
78
|
rdoc_options: []
|
77
79
|
|
@@ -92,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
94
|
requirements: []
|
93
95
|
|
94
96
|
rubyforge_project: debug-commons
|
95
|
-
rubygems_version: 1.3.1.
|
97
|
+
rubygems_version: 1.3.1.2014
|
96
98
|
signing_key:
|
97
99
|
specification_version: 3
|
98
100
|
summary: IDE interface for ruby-debug.
|