JRuby Fast Debugger 0.10.1

Friday the 13th, the good time for a new release :), here it is:

News

  • Main feature or benefit is that all the new features of MRI's CLI fast debugger might now be utilized. See CHANGES and Changelog for ruby-debug 0.10.1 release and check Debugging with ruby-debug manual. Rocky Bernstein pushes the CLI interface to be compatible with, or similar to, the one used for gdb. So be sure to check the CHANGES or type 'help' command into debugger console to check the new commands or the ones whose behaviour have changed.
  • No -J-Djruby.reflection=true -J-Djruby.compile.mode=OFF monster is needed any more. JRuby 1.1.2 (see JIRA 2474 for details) comes with special flag for debugging. Now all is needed is to pass --debug parameter to JRuby. So to debug your application, you just need to run:
      jruby --debug -S rdebug <your-script>
      
  • ruby-debug-base since version 0.10.1 depends on other native gem - linecache. With jruby-debug-base this is not needed since we are workarounding this by dummy linecache fake directly in jruby-debug-base. This means that we are not as clever as C ruby-debug-base - particularly in JRuby debugger you might put breakpoint on lines with no executable code where C implementation would cleverly reject it. In future there will be hopefully decent implementation of linecache. Any volunteer? :)
  • we are now passing almost whole, little bit tweaked, test suite of MRI ruby-debug 0.1.10. Few patches were contributed to ruby-debug-base implementation independence (whether it is MRI, JRuby or Rubinius one). Thanks ruby-debug team for the great test suite. This helps stability and compatibility of all implementations.
  • following up from the above point several bugs were fixed.
  • see ChangeLog for details.

Good to know

Since there were some API changes in JRuby 1.1.2 the jruby-debug-base 0.10.1 release does not work with JRuby 1.1.1 and older, only with JRuby 1.1.2+.

Installation

For installation see debug-commons website or Using the JRuby Debugger on JRubyWiki.

Enjoy and any feedback is welcomed as always.

Comments:

Marting, this is really nice!

One note though, it seems that --debug is not working with JRuby on Windows. I've just fixed that, see JRUBY-2664 for more details.

Posted by Vladimir Sizikov on June 14, 2008 at 08:49 PM PDT #

So in JRuby 1.1.2 one have to stick with the:

-J-Djruby.reflection=true -J-Djruby.compile.mode=OFF

right? Thanks for checking/fixing this, Vladimir.

Posted by Martin Krauskopf on June 15, 2008 at 04:42 PM PDT #

PS: sure, meaning on Windows in my previous post.

Posted by Martin Krauskopf on June 15, 2008 at 04:43 PM PDT #

Martin, yeah, the longer command line options should work, and --debug will work on current JRuby's trunk, and on JRuby 1.1.3.

Posted by Vladimir Sizikov on June 17, 2008 at 07:06 AM PDT #

[Trackback] As I mentioned a couple of weeks ago, I am researching the new Ruby and Rails features in the upcoming NetBeans IDE 6.5. Last week, Martin Krauskopf and I talked about the work that he is doing. Some of you might know Martin from his earlier work with ...

Posted by Insider Scoop From the Tutorial Divas on July 21, 2008 at 10:55 AM PDT #

Appears to still work well with 1.4
http://kenai.com/projects/jruby/pages/UsingTheJRubyDebugger is the new link to the wiki page
Thanks!
-rp

Posted by rogerdpack on February 19, 2010 at 05:53 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Martin Krauskopf

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today