ruby-debug-ide 0.4.33 → 0.5.0
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.
- checksums.yaml +4 -4
- data/ChangeLog.md +5 -0
- data/bin/rdebug-ide +12 -3
- data/lib/ruby-debug-ide.rb +3 -1
- data/lib/ruby-debug-ide/commands/catchpoint.rb +3 -2
- data/lib/ruby-debug-ide/version.rb +1 -1
- data/lib/ruby-debug-ide/xml_printer.rb +10 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19af121c63f42f580f9cda89f555474b65228761
|
4
|
+
data.tar.gz: 48bde5946752e9114fcb63aab586e11eecce005a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4b4c1197c7ed7cb12ca07f5cb7e1b55554cf62c277f1f64b38a28593a9b44e6bc0967773cd6c02296e2c1f89441ed0eb99948973bc0741fe88659feba59ad7d
|
7
|
+
data.tar.gz: 6859dd48e2f420b4ccde40ab147706cd13153db92791899eeda3dc6c2d46a61506d816cccbe242c575fba581811c03dc32bc48cd22c8fc4e09281463110228b9
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## [0.5.0](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.33...v0.5.0)
|
2
|
+
|
3
|
+
* catchpointDeleted event added (under --catchpoint-deleted-event flag)
|
4
|
+
* --value-as-nested-element to enable just this the extension
|
5
|
+
|
1
6
|
## [0.4.33](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.32...v0.4.33)
|
2
7
|
|
3
8
|
* Fixed problem with inspecting Jbuilder
|
data/bin/rdebug-ide
CHANGED
@@ -20,7 +20,9 @@ options = OpenStruct.new(
|
|
20
20
|
'int_handler' => true,
|
21
21
|
'dispatcher_port' => -1,
|
22
22
|
'evaluation_timeout' => 10,
|
23
|
-
'rm_protocol_extensions' => false
|
23
|
+
'rm_protocol_extensions' => false,
|
24
|
+
'catchpoint_deleted_event' => false,
|
25
|
+
'value_as_nested_element' => false
|
24
26
|
)
|
25
27
|
|
26
28
|
opts = OptionParser.new do |opts|
|
@@ -55,9 +57,15 @@ EOB
|
|
55
57
|
|
56
58
|
opts.on("--keep-frame-binding", "Keep frame bindings") {options.frame_bind = true}
|
57
59
|
opts.on("--disable-int-handler", "Disables interrupt signal handler") {options.int_handler = false}
|
58
|
-
opts.on("--rubymine-protocol-extensions", "Enable RubyMine-specific incompatible protocol extensions") do
|
60
|
+
opts.on("--rubymine-protocol-extensions", "Enable all RubyMine-specific incompatible protocol extensions") do
|
59
61
|
options.rm_protocol_extensions = true
|
60
62
|
end
|
63
|
+
opts.on("--catchpoint-deleted-event", "Enable chatchpointDeleted event") do
|
64
|
+
options.catchpoint_deleted_event = true
|
65
|
+
end
|
66
|
+
opts.on("--value-as-nested-element", "Allow to pass variable's value as nested element instead of attribute") do
|
67
|
+
options.value_as_nested_element = true
|
68
|
+
end
|
61
69
|
opts.separator ""
|
62
70
|
opts.separator "Common options:"
|
63
71
|
opts.on_tail("-v", "--version", "Show version") do
|
@@ -116,7 +124,8 @@ end
|
|
116
124
|
Debugger.keep_frame_binding = options.frame_bind
|
117
125
|
Debugger.tracing = options.tracing
|
118
126
|
Debugger.evaluation_timeout = options.evaluation_timeout
|
119
|
-
Debugger.
|
127
|
+
Debugger.catchpoint_deleted_event = options.catchpoint_deleted_event || options.rm_protocol_extensions
|
128
|
+
Debugger.value_as_nested_element = options.value_as_nested_element || options.rm_protocol_extensions
|
120
129
|
|
121
130
|
Debugger.debug_program(options)
|
122
131
|
|
data/lib/ruby-debug-ide.rb
CHANGED
@@ -41,9 +41,11 @@ module Debugger
|
|
41
41
|
cleared
|
42
42
|
end
|
43
43
|
|
44
|
-
attr_accessor :cli_debug, :xml_debug, :evaluation_timeout
|
44
|
+
attr_accessor :cli_debug, :xml_debug, :evaluation_timeout
|
45
45
|
attr_accessor :control_thread
|
46
46
|
attr_reader :interface
|
47
|
+
# protocol extensions
|
48
|
+
attr_accessor :catchpoint_deleted_event, :value_as_nested_element
|
47
49
|
|
48
50
|
|
49
51
|
#
|
@@ -25,8 +25,7 @@ module Debugger
|
|
25
25
|
errmsg "Off expected. Got %s\n", @match[2]
|
26
26
|
elsif Debugger.catchpoints.member?(excn)
|
27
27
|
Debugger.catchpoints.delete(excn)
|
28
|
-
|
29
|
-
#print "Catch for exception %s removed.\n", excn
|
28
|
+
print_catchpoint_deleted(excn)
|
30
29
|
else
|
31
30
|
errmsg "Catch for exception %s not found.\n", excn
|
32
31
|
end
|
@@ -40,7 +39,9 @@ module Debugger
|
|
40
39
|
def help(cmd)
|
41
40
|
%{
|
42
41
|
cat[ch]\t\t\tshow catchpoint
|
42
|
+
cat[ch] off \tremove all catch points
|
43
43
|
cat[ch] <an Exception>\tset catchpoint to an exception
|
44
|
+
cat[ch] <an Exception> off \tremove catchpoint for an exception
|
44
45
|
}
|
45
46
|
end
|
46
47
|
end
|
@@ -176,7 +176,7 @@ module Debugger
|
|
176
176
|
CGI.escapeHTML(name), build_compact_value_attr(value, value_str), kind,
|
177
177
|
build_value_attr(escaped_value_str), value.class,
|
178
178
|
has_children, value.respond_to?(:object_id) ? value.object_id : value.id)
|
179
|
-
print("<value><![CDATA[%s]]></value>", escaped_value_str) if Debugger.
|
179
|
+
print("<value><![CDATA[%s]]></value>", escaped_value_str) if Debugger.value_as_nested_element
|
180
180
|
print('</variable>')
|
181
181
|
rescue StandardError => e
|
182
182
|
print_debug "Unexpected exception \"%s\"\n%s", e.to_s, e.backtrace.join("\n")
|
@@ -216,6 +216,14 @@ module Debugger
|
|
216
216
|
print "<catchpointSet exception=\"%s\"/>", exception_class_name
|
217
217
|
end
|
218
218
|
|
219
|
+
def print_catchpoint_deleted(exception_class_name)
|
220
|
+
if Debugger.catchpoint_deleted_event
|
221
|
+
print "<catchpointDeleted exception=\"%s\"/>", exception_class_name
|
222
|
+
else
|
223
|
+
print_catchpoint_set(exception_class_name)
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
219
227
|
def print_expressions(exps)
|
220
228
|
print_element "expressions" do
|
221
229
|
exps.each_with_index do |(exp, value), idx|
|
@@ -390,7 +398,7 @@ module Debugger
|
|
390
398
|
end
|
391
399
|
|
392
400
|
def build_value_attr(escaped_value_str)
|
393
|
-
Debugger.
|
401
|
+
Debugger.value_as_nested_element ? '' : "value=\"#{escaped_value_str}\""
|
394
402
|
end
|
395
403
|
|
396
404
|
instance_methods.each do |m|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-debug-ide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Barchfeld, Martin Krauskopf, Mark Moseley, JetBrains RubyMine Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|