ruby-debug-ide22 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGES +75 -0
  3. data/ChangeLog.archive +1073 -0
  4. data/ChangeLog.md +594 -0
  5. data/Gemfile +38 -0
  6. data/MIT-LICENSE +24 -0
  7. data/Rakefile +93 -0
  8. data/bin/gdb_wrapper +96 -0
  9. data/bin/rdebug-ide +200 -0
  10. data/ext/mkrf_conf.rb +44 -0
  11. data/lib/ruby-debug-ide/attach/debugger_loader.rb +20 -0
  12. data/lib/ruby-debug-ide/attach/gdb.rb +73 -0
  13. data/lib/ruby-debug-ide/attach/lldb.rb +71 -0
  14. data/lib/ruby-debug-ide/attach/native_debugger.rb +133 -0
  15. data/lib/ruby-debug-ide/attach/process_thread.rb +54 -0
  16. data/lib/ruby-debug-ide/attach/util.rb +115 -0
  17. data/lib/ruby-debug-ide/command.rb +187 -0
  18. data/lib/ruby-debug-ide/commands/breakpoints.rb +128 -0
  19. data/lib/ruby-debug-ide/commands/catchpoint.rb +64 -0
  20. data/lib/ruby-debug-ide/commands/condition.rb +51 -0
  21. data/lib/ruby-debug-ide/commands/control.rb +158 -0
  22. data/lib/ruby-debug-ide/commands/enable.rb +203 -0
  23. data/lib/ruby-debug-ide/commands/eval.rb +64 -0
  24. data/lib/ruby-debug-ide/commands/expression_info.rb +71 -0
  25. data/lib/ruby-debug-ide/commands/file_filtering.rb +107 -0
  26. data/lib/ruby-debug-ide/commands/frame.rb +155 -0
  27. data/lib/ruby-debug-ide/commands/inspect.rb +25 -0
  28. data/lib/ruby-debug-ide/commands/jump.rb +73 -0
  29. data/lib/ruby-debug-ide/commands/load.rb +18 -0
  30. data/lib/ruby-debug-ide/commands/pause.rb +33 -0
  31. data/lib/ruby-debug-ide/commands/set_type.rb +47 -0
  32. data/lib/ruby-debug-ide/commands/stepping.rb +108 -0
  33. data/lib/ruby-debug-ide/commands/threads.rb +178 -0
  34. data/lib/ruby-debug-ide/commands/variables.rb +154 -0
  35. data/lib/ruby-debug-ide/event_processor.rb +71 -0
  36. data/lib/ruby-debug-ide/greeter.rb +42 -0
  37. data/lib/ruby-debug-ide/helper.rb +33 -0
  38. data/lib/ruby-debug-ide/ide_processor.rb +155 -0
  39. data/lib/ruby-debug-ide/interface.rb +45 -0
  40. data/lib/ruby-debug-ide/multiprocess/monkey.rb +47 -0
  41. data/lib/ruby-debug-ide/multiprocess/pre_child.rb +59 -0
  42. data/lib/ruby-debug-ide/multiprocess/starter.rb +11 -0
  43. data/lib/ruby-debug-ide/multiprocess/unmonkey.rb +31 -0
  44. data/lib/ruby-debug-ide/multiprocess.rb +23 -0
  45. data/lib/ruby-debug-ide/thread_alias.rb +27 -0
  46. data/lib/ruby-debug-ide/version.rb +3 -0
  47. data/lib/ruby-debug-ide/xml_printer.rb +571 -0
  48. data/lib/ruby-debug-ide.rb +228 -0
  49. data/ruby-debug-ide.gemspec +47 -0
  50. metadata +110 -0
data/ChangeLog.md ADDED
@@ -0,0 +1,594 @@
1
+ ## [master](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.6.0...master)
2
+
3
+ * let's use Debugger#remove_catchpoint and Debugger#clear_catchpoints if available
4
+
5
+ ## [0.6.0](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.5.0...0.6.0)
6
+
7
+ * "file-filter on|off" command added
8
+ * "include file|dir" command added
9
+ * "exclude file|dir" command added
10
+
11
+ ## [0.5.0](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.33...v0.5.0)
12
+
13
+ * catchpointDeleted event added (under --catchpoint-deleted-event flag)
14
+ * --value-as-nested-element to enable just this the extension
15
+
16
+ ## [0.4.33](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.32...v0.4.33)
17
+
18
+ * Fixed problem with inspecting Jbuilder
19
+ [RUBY-16838](https://youtrack.jetbrains.com/issue/RUBY-16838)
20
+
21
+ ## [0.4.32](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.31...v0.4.32)
22
+
23
+ * Fixed problem with preloading psych
24
+ [RUBY-16721](https://youtrack.jetbrains.com/issue/RUBY-16721)
25
+
26
+ ## [0.4.31](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.30...v0.4.31)
27
+
28
+ * need to handle mock objects somehow
29
+ [RUBY-16665](https://youtrack.jetbrains.com/issue/RUBY-16665)
30
+
31
+ ## [0.4.30](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.29...v0.4.30)
32
+
33
+ * reverting fix for
34
+ [RUBY-16192](https://youtrack.jetbrains.com/issue/RUBY-16192) to resolve
35
+ [RUBY-16435](https://youtrack.jetbrains.com/issue/RUBY-16435)
36
+
37
+ * unescaping of empty line fixed
38
+ [RUBY-16600](https://youtrack.jetbrains.com/issue/RUBY-16600)
39
+
40
+ ## [0.4.29](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.28...v0.4.29)
41
+
42
+ * Fixed problem with evaluating "%"
43
+ [RUBY-16244](https://youtrack.jetbrains.com/issue/RUBY-16244)
44
+
45
+ ## [0.4.28](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.27...v0.4.28)
46
+
47
+ * [better handling for escaped chars and slashes](https://github.com/ruby-debug/ruby-debug-ide/pull/68)
48
+
49
+ ## [0.4.27](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.26...v0.4.27)
50
+
51
+ * Redundant quotes dropped from string variable representation
52
+ [RUBY-16275](https://youtrack.jetbrains.com/issue/RUBY-16275)
53
+
54
+ ## [0.4.26](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.25...v0.4.26)
55
+
56
+ * Compact value for inline debugger should be really compact
57
+ [RUBY-15932](https://youtrack.jetbrains.com/issue/RUBY-15932)
58
+
59
+ ## [0.4.25](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.24...v0.4.25)
60
+
61
+ * Let's use String#inspect in print variable for String variables
62
+ [RUBY-16192](https://youtrack.jetbrains.com/issue/RUBY-16192)
63
+
64
+ ## [0.4.24](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.24.beta5...v0.4.24)
65
+
66
+ * time to release
67
+
68
+ ## [0.4.24.beta5](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.24.beta4...v0.4.24.beta5)
69
+
70
+ * do not print empty value attr in case RubyMine-specific protocol extensions are enabled
71
+
72
+ ## [0.4.24.beta4](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.23...v0.4.24.beta4)
73
+
74
+ * Performance optimisation for variable representation [RUBY-16055](https://youtrack.jetbrains.com/issue/RUBY-16055)
75
+ * Added command line argument to enable RubyMine-specific protocol extensions
76
+ * Several fixes to make debugger more robust [RUBY-16070](https://youtrack.jetbrains.com/issue/RUBY-16070)
77
+
78
+ ## [0.4.23](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.23.beta11...v0.4.23)
79
+
80
+ * fixed problem with compact name for binary params (strings with invalid encoding)
81
+ [RUBY-15960](https://youtrack.jetbrains.com/issue/RUBY-15960)
82
+
83
+ ## [0.4.23.beta11](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.23.beta10...v0.4.23.beta11)
84
+
85
+ * adding breakpoint in non-existing file should not break debugger
86
+ [RUBY-15873](https://youtrack.jetbrains.com/issue/RUBY-15873)
87
+
88
+ ## [0.4.23.beta10](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.23.beta9...v0.4.23.beta10)
89
+
90
+ * fixed problem with printing hashes [RUBY-15804](https://youtrack.jetbrains.com/issue/RUBY-15804)
91
+
92
+ ## [0.4.23.beta9](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.23.beta8...v0.4.23.beta9)
93
+
94
+ * problem with calculating local variables for 1.8 fixed
95
+
96
+ ## "per-historical" changes
97
+ Dennis Ushakov <dennis.ushakov@gmail.com>
98
+ * run context commands on stopped thread to prevent segfaults (3c1b52d5091fccec447d5695d5b43e73f335cc54)
99
+ * enable building without deps (9b597f8ce2b97ed40bb57e55ad178cf8ce270fa9)
100
+ * improved error handling (220d78b8e2be52f8a3b21f34c6c88283b22440d4)
101
+ * show full exception info when failed to evaluate expression (8f4ec5f16dd659e0cada7ff2a218e8768ff87b35)
102
+ * fix config (8440dc7bb51c934f99887ff43cdf805a16664159)
103
+ * edited dependency for 1.9, allow prerelease (14ffae2dd364ad445377b358870c35eabdf9567c)
104
+ * fix incompatibilities with command-line debug (474d3607222a0c9fc78917e7b38051d37b11b75a)
105
+ * fix installation issues with prerelease base gem versions (12fc83ce1f389c1feaaa3899dd716b670909687a)
106
+ * added synchronization between command processors threads (175f2ef890d23d490e04265949853b4202db1860)
107
+ * fixed debug output (0e9dd25a8cdde9195ef2060678fc6272270762f8)
108
+ * fix 1.9 support (725f14095c67c02be8b4f9b8ef2706de70cfa220)
109
+ * just a version bump, because i forgot to push fix for 1.9 (be7c60c446c293d522958fd9c6136dc21ece6dba)
110
+ * fix incompatibilities with command-line debug (37c98589bf1b8d43521bfa71fa75a587130c8494)
111
+ * fix incompatibilities with command-line debug (749ba472d5bd44c1488a7a310fa51712426ab972)
112
+ * fix incompatibilities with command-line debug, one more round (fa3b98788250d028ecac9db3828b14b6df307042)
113
+
114
+ 2009-12-22 14:28 Martin Krauskopf
115
+
116
+ * Rakefile, doc/protocol-spec.texi, lib/ruby-debug-ide.rb,
117
+ test/rd_test_base.rb: Increasing version; updating changes
118
+
119
+ 2009-12-22 14:23 Martin Krauskopf
120
+
121
+ * lib/ruby-debug/commands/variables.rb: Fix for possible
122
+ NoSuchMethodException (by Oleg Shpynov)
123
+
124
+ 2009-09-09 12:24 Martin Krauskopf
125
+
126
+ * ChangeLog, Rakefile, ext/mkrf_conf.rb, lib/ruby-debug-ide.rb,
127
+ test/rd_test_base.rb: Do not try to install native extension for
128
+ JRuby.
129
+
130
+ 2009-08-31 12:00 Martin Krauskopf
131
+
132
+ * ChangeLog: ChangeLog update
133
+
134
+ 2009-08-31 11:59 Martin Krauskopf
135
+
136
+ * Rakefile, bin/rdebug-ide, ext/extconf.rb, ext/mkrf_conf.rb,
137
+ lib/ruby-debug-ide.rb, lib/ruby-debug.rb, test/rd_test_base.rb:
138
+ 1)fixed bug #27009, 2)rename to ruby-debug-ide.rb (both by Mark
139
+ Moseley)
140
+
141
+ - to not collide with lib/ruby-debug.rb from ruby-debug-cli
142
+
143
+ 2009-08-26 19:06 Martin Krauskopf
144
+
145
+ * ChangeLog, Rakefile, bin/rdebug-ide, ext, ext/extconf.rb,
146
+ lib/ruby-debug.rb, lib/ruby-debug/command.rb,
147
+ lib/ruby-debug/event_processor.rb, lib/ruby-debug/processor.rb,
148
+ lib/ruby-debug/xml_printer.rb: Patch by Mark Moseley supporting
149
+ ruby-debug-base19.
150
+
151
+ Dynamically installs right ruby-debug-base dependency depending
152
+ on the version
153
+ of a Ruby platform being used. ruby-debug-base19 is the only
154
+ solution these
155
+ days for 1.9 debugging, so might be temporary solution until
156
+ ruby-debug
157
+ projects brings official version.
158
+
159
+ 2009-08-26 17:36 Martin Krauskopf
160
+
161
+ * lib/ruby-debug.rb: One more try for the right value for default
162
+ 'host' value.
163
+
164
+ 127.0.0.1 seemingly works with all systems and with IPv6 as well.
165
+ "localhost" and nil on have problems on some systems.
166
+
167
+ 2009-08-21 08:43 Martin Krauskopf
168
+
169
+ * lib/ruby-debug.rb: Ruby 1.9.x vs Java vs 'localhost' seems to be
170
+ problematic as well
171
+
172
+ 2009-06-04 16:02 Martin Krauskopf
173
+
174
+ * Rakefile, lib/ruby-debug.rb, test/rd_test_base.rb: Increasing
175
+ trung version
176
+
177
+ 2009-06-04 15:59 Martin Krauskopf
178
+
179
+ * ChangeLog, bin/rdebug-ide: Mentioning RubyMine among
180
+ ruby-debug-ide clients.
181
+
182
+ 2009-05-21 18:16 Martin Krauskopf
183
+
184
+ * ChangeLog: Changelog update
185
+
186
+ 2009-05-21 18:01 Martin Krauskopf
187
+
188
+ * Rakefile, doc/protocol-spec.texi, lib/ruby-debug.rb,
189
+ test/rd_test_base.rb: Added Debugger::start_server (ticket
190
+ #25972), patch by Tim Hanson
191
+
192
+ 2009-03-12 11:38 Martin Krauskopf
193
+
194
+ * ChangeLog, Rakefile, doc/protocol-spec.texi, lib/ruby-debug.rb,
195
+ test/rd_test_base.rb: Oops. 0.4.5 was not released yet, so it is
196
+ the rigth version, not 0.4.6, reverting.
197
+
198
+ 2009-03-12 11:31 Martin Krauskopf
199
+
200
+ * Rakefile, doc/protocol-spec.texi, lib/ruby-debug.rb,
201
+ lib/ruby-debug/commands/catchpoint.rb, test/rd_test_base.rb:
202
+ Possibility to remove catchpoints (patch by Chris Williams)
203
+
204
+ 2009-02-03 09:34 Martin Krauskopf
205
+
206
+ * Rakefile, bin/rdebug-ide, doc/protocol-spec.texi,
207
+ lib/ruby-debug.rb, test/rd_test_base.rb: 1) bugfix: syntax error
208
+ with Ruby 1.9 (patch by Mikael Rudberg) 2) 0.4.5 territory
209
+
210
+ 2009-01-14 07:19 Martin Krauskopf
211
+
212
+ * doc/protocol-spec.texi: completeng missing changes
213
+
214
+ 2009-01-13 10:00 Martin Krauskopf
215
+
216
+ * Rakefile, doc/protocol-spec.texi, lib/ruby-debug.rb,
217
+ test/rd_test_base.rb: 1) bugfix: print out backtrace when
218
+ debuggee fails. 2) version to 0.4.4
219
+
220
+ 2009-01-13 09:54 Martin Krauskopf
221
+
222
+ * Rakefile: Release appropriate files like license, tests, changes,
223
+ ... withing the gem.
224
+
225
+ 2008-12-19 08:23 Martin Krauskopf
226
+
227
+ * Rakefile, lib/ruby-debug.rb, test/rd_test_base.rb: Depends on the
228
+ "~> 0.10.3.x", rather then on 0.10.3 exactly. Increasing version
229
+ to 0.4.3.
230
+
231
+ 2008-12-19 08:20 Martin Krauskopf
232
+
233
+ * doc/protocol-spec.texi: typo
234
+
235
+ 2008-11-24 12:59 Martin Krauskopf
236
+
237
+ * doc/protocol-spec.texi: Changes between 0.3.1 and 0.3.2
238
+
239
+ 2008-11-21 10:56 Martin Krauskopf
240
+
241
+ * ChangeLog, Rakefile, doc/protocol-spec.texi,
242
+ etc/build_and_install.sh, lib/ruby-debug.rb,
243
+ test/rd_test_base.rb: Dependency changed to
244
+ ruby-debug-base-0.10.3 which fixes various bugs and contains
245
+ bunch of RFEs
246
+
247
+ 2008-11-10 09:22 Martin Krauskopf
248
+
249
+ * ChangeLog, doc/protocol-spec.texi: Changes for 0.4.1
250
+
251
+ 2008-11-10 08:15 Martin Krauskopf
252
+
253
+ * bin/rdebug-ide, lib/ruby-debug.rb, lib/ruby-debug/xml_printer.rb:
254
+ Making '-x' switch actually work. Commenting out sending <trace>
255
+ elements to the debugger. To be decided. There are large amount
256
+ of such events. For now servers rather for developers.
257
+
258
+ 2008-11-09 23:39 Martin Krauskopf
259
+
260
+ * bin/rdebug-ide, lib/ruby-debug.rb: --stop switch: stop at the
261
+ first line when the script is loaded. Utilized by remote
262
+ debugging.
263
+ s/Debugger#main/Debugger#debug_program (similarly to ruby-debug)
264
+
265
+ 2008-11-09 00:28 Martin Krauskopf
266
+
267
+ * lib/ruby-debug/commands/eval.rb,
268
+ lib/ruby-debug/commands/frame.rb, lib/ruby-debug/xml_printer.rb:
269
+ Fixing CLI verbose when -d is used. Some usused code
270
+
271
+ 2008-11-08 18:43 Martin Krauskopf
272
+
273
+ * doc/protocol-spec.texi, lib/ruby-debug/xml_printer.rb,
274
+ test/ruby-debug/xml_printer_test.rb: Ensure suspension's file
275
+ attribute contains absolute path.
276
+
277
+ 2008-11-08 18:33 Martin Krauskopf
278
+
279
+ * Rakefile, doc/protocol-spec.texi, etc/build_and_install.sh,
280
+ lib/ruby-debug.rb, lib/ruby-debug/xml_printer.rb,
281
+ nbproject/project.properties, test/rd_test_base.rb,
282
+ test/ruby-debug/xml_printer_test.rb: Ensure frame file attribute
283
+ contains absolute path. Increasing trunk version to 0.4.1
284
+
285
+ 2008-11-02 11:19 Martin Krauskopf
286
+
287
+ * doc/protocol-spec.texi: noting <message> element/event
288
+
289
+ 2008-10-30 02:14 Martin Krauskopf
290
+
291
+ * Rakefile, bin/rdebug-ide, doc/protocol-spec.texi,
292
+ etc/build_and_install.sh, lib/ruby-debug.rb,
293
+ lib/ruby-debug/xml_printer.rb, test/rd_test_base.rb,
294
+ test/ruby-debug, test/ruby-debug/xml_printer_test.rb: New
295
+ --xml-debug switch. To be used by frontend to not mess up
296
+ debuggee output with debugger's debug messages.
297
+
298
+ - increasing version to 0.4.0 (new <message debug='true'...>
299
+ attribute)
300
+ - more robust failures handling in DebugThread
301
+ - some XmlPrinterTest sanity tests
302
+
303
+ 2008-10-13 13:48 Martin Krauskopf
304
+
305
+ * doc/protocol-spec.texi: Mentioning 0.3.1 changes
306
+
307
+ 2008-10-09 06:48 Martin Krauskopf
308
+
309
+ * Rakefile, bin/rdebug-ide, etc/build_and_install.sh,
310
+ lib/ruby-debug.rb, test/rd_test_base.rb: Support for
311
+ '--load-mode' option. Hotfix, likely workaround, for GlassFish
312
+ debugging. Experimental, might be removed in the future.
313
+
314
+ If option is used, it calls Debugger#debug_load with
315
+ increment_start=true
316
+ Increasing version to 0.3.1
317
+
318
+ 2008-09-08 15:17 Martin Krauskopf
319
+
320
+ * ChangeLog: ChangeLog update before 0.3.0 release
321
+
322
+ 2008-09-05 11:52 Martin Krauskopf
323
+
324
+ * Rakefile, doc/protocol-spec.texi, etc/build_and_install.sh,
325
+ lib/ruby-debug.rb, lib/ruby-debug/commands/catchpoint.rb,
326
+ lib/ruby-debug/xml_printer.rb, test-base/readers.rb,
327
+ test-base/test_base.rb, test/rd_catchpoint_test.rb,
328
+ test/rd_test_base.rb: Setting catchpoint now answers with
329
+ <conditionSet> instead of just <message> providing better control
330
+ at frontend side.
331
+ Increasing version to 0.3.0 (incompatible protocol change)
332
+
333
+ 2008-09-03 14:14 Martin Krauskopf
334
+
335
+ * lib/ruby-debug/processor.rb: Do not swallow exceptions
336
+
337
+ 2008-09-02 18:24 Martin Krauskopf
338
+
339
+ * test-base/test_base.rb: Be sure socket is flushed during tests
340
+
341
+ 2008-09-02 13:55 Martin Krauskopf
342
+
343
+ * test-base/stepping_breakpoints_test.rb: ruby-debug-base fixes
344
+ stepping behaviour. Re-enabling common tests again
345
+
346
+ 2008-09-02 13:54 Martin Krauskopf
347
+
348
+ * test-base/test_base.rb, test/rd_test_base.rb: Do not hardcode
349
+ port for test server. Find always free one to prevent batch test
350
+ fails.
351
+
352
+ 2008-09-02 13:49 Martin Krauskopf
353
+
354
+ * nbproject/project.properties, nbproject/project.xml: Tweaking
355
+ NetBeans project metadata to include bin directory as a source
356
+ root
357
+
358
+ 2008-09-02 13:48 Martin Krauskopf
359
+
360
+ * Rakefile: Switching trunk dependency on recently released
361
+ ruby-debug-base 0.10.2
362
+
363
+ 2008-08-12 16:10 Martin Krauskopf
364
+
365
+ * ChangeLog, Rakefile, doc/protocol-spec.texi,
366
+ etc/build_and_install.sh, lib/ruby-debug.rb: Switching trunk to
367
+ 0.2.2
368
+
369
+ 2008-08-12 16:00 Martin Krauskopf
370
+
371
+ * lib/ruby-debug/xml_printer.rb, test-base/variables_test.rb:
372
+ debugging is terminated when object's to_s method raises an
373
+ exception
374
+
375
+ 2008-07-31 15:10 Martin Krauskopf
376
+
377
+ * nbproject: ignore private folder
378
+
379
+ 2008-07-31 15:09 Martin Krauskopf
380
+
381
+ * nbproject, nbproject/project.properties, nbproject/project.xml:
382
+ Adding NetBeans project metadata.
383
+
384
+ 2008-07-31 13:39 Martin Krauskopf
385
+
386
+ * doc/protocol-spec.texi: - pushing changes to website
387
+ - fixing typo s/workardouning/workarounding
388
+
389
+ 2008-07-31 13:23 Martin Krauskopf
390
+
391
+ * ChangeLog: ChangeLog update before tagging 0.2.1
392
+
393
+ 2008-07-31 13:20 Martin Krauskopf
394
+
395
+ * doc/protocol-spec.texi: Updating Changes between 0.2.0 and 0.2.1
396
+
397
+ 2008-07-31 13:13 Martin Krauskopf
398
+
399
+ * test-base/stepping_breakpoints_test.rb: tweaking tests for bugs
400
+ in MRI to catch it once it is fixed
401
+
402
+ 2008-07-31 13:12 Martin Krauskopf
403
+
404
+ * Rakefile, lib/ruby-debug.rb: Hotfixing problem with running Ruby
405
+ on Mac. See 'Debugger timing out' thread:
406
+ http://ruby.netbeans.org/servlets/BrowseList?list=users&by=thread&from=861334
407
+ Still continuing on 0.2.x row (changing dependeny on
408
+ ruby-debug-base back to 0.10.1)
409
+
410
+ 2008-07-14 22:40 Martin Krauskopf
411
+
412
+ * Rakefile: Make trunk dependent on ruby-debug-base 0.10.2 which
413
+ fixed important "finish" bug
414
+
415
+ 2008-06-22 07:10 Martin Krauskopf
416
+
417
+ * CHANGES, Rakefile, etc/build_and_install.sh, lib/ruby-debug.rb:
418
+ increasing trunk version to 0.2.1
419
+ - CHANGES no longer maintained
420
+
421
+ 2008-06-22 06:58 Martin Krauskopf
422
+
423
+ * ChangeLog: ChangeLog update before tagging 0.2.0
424
+
425
+ 2008-06-17 12:40 Martin Krauskopf
426
+
427
+ * test/rd_test_base.rb: Fixing test loadpath
428
+
429
+ 2008-06-17 11:52 Martin Krauskopf
430
+
431
+ * test-base/variables_test.rb: New version of Rubies (Ruby 1.8.7
432
+ and JRuby 1.1.2) handle stack differently
433
+
434
+ 2008-06-17 09:20 Martin Krauskopf
435
+
436
+ * lib/ruby-debug.rb: s/Debugger::VERSION/0.2.0; former one points
437
+ to ruby-debug-base version
438
+
439
+ 2008-06-12 06:41 Martin Krauskopf
440
+
441
+ * CHANGES, Rakefile, doc/protocol-spec.texi,
442
+ etc/build_and_install.sh: New version will be 0.2.0, since there
443
+ is slight incompatible change (see spec)
444
+
445
+ 2008-05-23 12:48 Martin Krauskopf
446
+
447
+ * doc/protocol-spec.texi: - documenting catchpoitns
448
+ - mentioning "catch off" in uncompatible changes
449
+
450
+ 2008-05-21 14:01 Martin Krauskopf
451
+
452
+ * ChangeLog, test/rd_catchpoint_test.rb: Adding test for catchpoint
453
+
454
+ 2008-05-21 13:32 Martin Krauskopf
455
+
456
+ * doc/protocol-spec.texi: s/0.1.1/trunk (not sure whether it will
457
+ be 0.1.11 or 0.2.0)
458
+ - since tag for enable/disable command
459
+
460
+ 2008-05-21 13:22 Martin Krauskopf
461
+
462
+ * doc/protocol-spec.texi: - enabled/disable breakpoint feature
463
+ - typo in delete command
464
+
465
+ 2008-05-21 13:21 Martin Krauskopf
466
+
467
+ * lib/ruby-debug/command.rb, lib/ruby-debug/commands/enable.rb,
468
+ lib/ruby-debug/helper.rb, lib/ruby-debug/xml_printer.rb,
469
+ test-base/readers.rb, test-base/test_base.rb,
470
+ test/rd_enable_disable_test.rb: Enabled/Disable breakpoint
471
+ feature
472
+
473
+ 2008-05-21 12:39 Martin Krauskopf
474
+
475
+ * doc/protocol-spec.texi: Deleting Breakpoint
476
+
477
+ 2008-05-17 21:06 Martin Krauskopf
478
+
479
+ * doc/protocol-spec.texi: - changes section
480
+ - continuing with protocol description
481
+
482
+ 2008-05-17 21:04 Martin Krauskopf
483
+
484
+ * lib/ruby-debug/commands/catchpoint.rb, test-base/inspect_test.rb,
485
+ test-base/readers.rb, test-base/test_base.rb: Tweaking
486
+ catchpoint.rb and addng basic test
487
+
488
+ 2008-05-15 20:59 Martin Krauskopf
489
+
490
+ * lib/ruby-debug/event_processor.rb: I've got the deadlock
491
+ suggesting that Debugger::DebuggerThread instance was being
492
+ traced from tests. Putting 'assertion' forbidding it
493
+
494
+ 2008-05-15 20:56 Martin Krauskopf
495
+
496
+ * lib/ruby-debug.rb: Sanity check whether control thread starts up
497
+ (#20121)
498
+
499
+ 2008-05-15 14:13 Martin Krauskopf
500
+
501
+ * doc/protocol-spec.texi: - fixing version
502
+ - RDEBUG_IDE variable
503
+
504
+ 2008-05-15 13:52 Martin Krauskopf
505
+
506
+ * doc/protocol-spec.texi: Fixing 'cond' section
507
+
508
+ 2008-05-15 10:58 Martin Krauskopf
509
+
510
+ * lib/ruby-debug/event_processor.rb: Preventing possible race
511
+ condition between a program thread and control thread
512
+
513
+ 2008-05-14 21:16 Martin Krauskopf
514
+
515
+ * lib/ruby-debug/processor.rb: State and ControlState does not need
516
+ to keep commands' classes
517
+ (they are used in CLI debugger from 'help' command)
518
+
519
+ 2008-05-13 18:58 Martin Krauskopf
520
+
521
+ * doc, doc/protocol-spec.texi: Some works on ruby-debug-ide
522
+ protocol specification, far from complete
523
+
524
+ 2008-05-13 18:04 Martin Krauskopf
525
+
526
+ * lib/ruby-debug/command.rb, lib/ruby-debug/commands/condition.rb,
527
+ lib/ruby-debug/xml_printer.rb, test-base/condition_test.rb,
528
+ test-base/readers.rb, test-base/test_base.rb,
529
+ test/rd_condition_test.rb: Support for setting condition on
530
+ breakpoints
531
+ - condition.rb copy-pasted (then tweaked) from ruby-debug until
532
+ we find better way
533
+
534
+ 2008-05-09 14:56 Martin Krauskopf
535
+
536
+ * lib/ruby-debug.rb, lib/ruby-debug/event_processor.rb,
537
+ test-base/stepping_breakpoints_test.rb,
538
+ test-base/threads_and_frames_test.rb: - implementing
539
+ Context#at_return to make 'finish' work with MRI (not used by
540
+ JRuby yet)
541
+ - tweaking test for different behaviours of interpreters
542
+
543
+ 2008-05-08 21:40 Martin Krauskopf
544
+
545
+ * test-base/threads_and_frames_test.rb: Adding test for 'finish'.
546
+ Currently does not work with MRI:
547
+ ruby-debug issue: [#20039] Finish does not work correctly
548
+
549
+ 2008-05-08 16:49 Martin Krauskopf
550
+
551
+ * Rakefile: - switching trunk to ruby-debug-base(s) 0.10.1
552
+ - remove README to pass the 'gem' task. So far we have no any
553
+ README
554
+
555
+ 2008-05-08 12:55 Martin Krauskopf
556
+
557
+ * ., ChangeLog, ChangeLog.archive, svn2cl_usermap: - archiving
558
+ before-division ChangeLogs
559
+ - ignore pkg and private configuration
560
+
561
+ 2008-05-08 12:17 Martin Krauskopf
562
+
563
+ * ., CHANGES, ChangeLog, MIT-LICENSE, Rakefile, bin,
564
+ bin/rdebug-ide, config.yaml, etc, etc/build_and_install.sh,
565
+ etc/kill_debugger, lib, lib/ruby-debug, lib/ruby-debug.rb,
566
+ lib/ruby-debug/command.rb, lib/ruby-debug/commands,
567
+ lib/ruby-debug/commands/breakpoints.rb,
568
+ lib/ruby-debug/commands/catchpoint.rb,
569
+ lib/ruby-debug/commands/control.rb,
570
+ lib/ruby-debug/commands/eval.rb,
571
+ lib/ruby-debug/commands/frame.rb,
572
+ lib/ruby-debug/commands/inspect.rb,
573
+ lib/ruby-debug/commands/load.rb,
574
+ lib/ruby-debug/commands/stepping.rb,
575
+ lib/ruby-debug/commands/threads.rb,
576
+ lib/ruby-debug/commands/variables.rb,
577
+ lib/ruby-debug/event_processor.rb, lib/ruby-debug/helper.rb,
578
+ lib/ruby-debug/interface.rb, lib/ruby-debug/printers.rb,
579
+ lib/ruby-debug/processor.rb, lib/ruby-debug/xml_printer.rb, test,
580
+ test-base, test-base/basic_test.rb, test-base/inspect_test.rb,
581
+ test-base/readers.rb, test-base/stepping_breakpoints_test.rb,
582
+ test-base/test_base.rb, test-base/threads_and_frames_test.rb,
583
+ test-base/variables_test.rb, test/rd_basic_test.rb,
584
+ test/rd_inspect_test.rb, test/rd_stepping_breakpoints_test.rb,
585
+ test/rd_test_base.rb, test/rd_threads_and_frames_test.rb,
586
+ test/rd_variables_test.rb: Dividing 'debug-commons' into two
587
+ projects:
588
+ - ruby-debug-ide: wrapper for ruby-debug-base
589
+ - classic-debug-ide: wrapper for classic debug.rb
590
+ to make further development more smooth. classic-debug-ide is
591
+ getting
592
+ deprecated by availability of ruby-debug-base for MRI, JRuby and
593
+ Rubinius
594
+
data/Gemfile ADDED
@@ -0,0 +1,38 @@
1
+ source "http://rubygems.org"
2
+
3
+ # @param [Array<String>] versions compatible ruby versions
4
+ # @return [Array<String>] an array with mri platforms of given versions
5
+ def mries(*versions)
6
+ versions.map do |v|
7
+ %w(ruby mingw x64_mingw).map do |platform|
8
+ "#{platform}_#{v}".to_sym unless platform == "x64_mingw" && v < "2.0"
9
+ end.delete_if &:nil?
10
+ end.flatten
11
+ end
12
+
13
+ if RUBY_VERSION < '1.9' || defined?(JRUBY_VERSION)
14
+ gem "ruby-debug-base", :platforms => [:jruby, *mries('18')]
15
+ end
16
+
17
+ if RUBY_VERSION && RUBY_VERSION >= "1.9"
18
+ gem "ruby-debug-base19x", ">= 0.11.32", :platforms => mries('19')
19
+ end
20
+
21
+ if RUBY_VERSION && RUBY_VERSION >= "2.0"
22
+ gem "debase", "~> 0.2", ">= 0.2.2", :platforms => mries('20', '21', '22', '23', '24', '25')
23
+ end
24
+
25
+ gemspec
26
+
27
+ group :development do
28
+ gem "bundler"
29
+ end
30
+
31
+ group :test do
32
+ if RUBY_VERSION < "1.9"
33
+ gem "test-unit", "~> 2.1.2"
34
+ else
35
+ gem "test-unit"
36
+ end
37
+ end
38
+
data/MIT-LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ The file lib/classic-debug.rb is based on the debug.rb file from Ruby
2
+ project.
3
+
4
+ Copyright (c) 2007-2008, debug-commons team
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ "Software"), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
+