Markus Barchfeld wrote:
> Hi Martin!
>
>> I'm going to merged support of next+ and step+ into ruby-debug-ide
>> (will be 0.1.3). This is a new feature added by Kent into ruby-debug
>> 0.9.1:
>>
>> http://www.datanoise.com/articles/2007/4/3/ruby-debug-version-0-9-1-has-been-released
>>
>>
> Yes. Thanks. In the last days Kent has released ruby-debug-base 0.9.3,
> which includes at least one bug fix, which is relevant for us, too. In
> the following example the third line would not be covered from a next
> command.
>
> 1: if a==0
> 2: p "a is 0"
> 3: elsif a==1
> 4: p "a is 1"
> 5: end
>
> So, I have released ruby-debug-ide 0.1.4 which binds to ruby-debug-base
> 0.9.3 and also has the following changes:**
>
> * fixed noise on stdout
Thanks, especially for this one. Was quite visible.
> * debug_eval got a 10 sec timeout
> * fixed exit command
>
> [...]
>
> I have no idea yet how we should integrate the forced (+) next/step
> commands into the debug perspective. AFAIU the comments from Kent they
> make most sense in rhtml files although they can be used in every file.
> So, it might be a good default to use forced commands in rhtml files but
> so far you can't even set a breakpoint in an rhtml file.
This is exactly what I've done in NetBeans. I've integrated command into
debug-commons-java (still less feature-rich then the "library" in the
RDT) and in NetBeans I'm using something like:
====
private boolean forceNewLine() {
...
return Util.isERBSource(resolveFileObject(frame.getFile())); // is
application/x-httpd-eruby
}
...
thread.stepInto(forceNewLine())
====
It really just work. Just enabling to set a breakpoint in the ERB
templates and using next+/step+ there is all you need as you suggested.
BTW it seems that there will be something like jruby-debug soon. I hope
I will have enough time to participate a lot on this piece. Might be
another debug-commons child or jruby-extras, does not matter to much.
Also it seems that DLTK people would join us in the future with
debug-commons with DBGp implementation. Future seems quite good for
ruby-debugging thanks to your initial contribution Markus! ;)
m.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Rubyeclipse-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rubyeclipse-development