[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

communicating with ruby debugger

Shea Martin

10/12/2006 3:03:00 PM

For kicks I would like to write a minimalistic GUI interface to the
debugger.

I prefer C++ or C# for GUI applications (this is not to debate here).

What is the best way to establish communication between my GUI and the
default ruby debugger?

As a starting point, I would just like the gui to show the file being
debugged and the current line of execution. The debug commands will be
set in a command window.

A point in the right direction would be helpful.

~S
8 Answers

Shea Martin

10/13/2006 12:02:00 PM

0

Does anyone know of an open source ruby ide w/ debugger which is not
written in ruby?

Thanks,
~S

Shea Martin wrote:
> For kicks I would like to write a minimalistic GUI interface to the
> debugger.
>
> I prefer C++ or C# for GUI applications (this is not to debate here).
>
> What is the best way to establish communication between my GUI and the
> default ruby debugger?
>
> As a starting point, I would just like the gui to show the file being
> debugged and the current line of execution. The debug commands will be
> set in a command window.
>
> A point in the right direction would be helpful.
>
> ~S

Jeff Wood

10/13/2006 2:38:00 PM

0

Shea Martin wrote:
> Does anyone know of an open source ruby ide w/ debugger which is not
> written in ruby?
>
> Thanks,
> ~S
>
> Shea Martin wrote:
>> For kicks I would like to write a minimalistic GUI interface to the
>> debugger.
>>
>> I prefer C++ or C# for GUI applications (this is not to debate here).
>>
>> What is the best way to establish communication between my GUI and
>> the default ruby debugger?
>>
>> As a starting point, I would just like the gui to show the file being
>> debugged and the current line of execution. The debug commands will
>> be set in a command window.
>>
>> A point in the right direction would be helpful.
>>
>> ~S
>
Arachno IDE is not written in Ruby ... I believe it's written in Eiffel.

jd


Huw Collingbourne

10/13/2006 3:42:00 PM

0


"Jeff Wood" <jeff@dark-light.com> wrote in message
news:452FA4BF.20207@dark-light.com...
> Shea Martin wrote:
>> Does anyone know of an open source ruby ide w/ debugger which is not
>> written in ruby?
> Arachno IDE is not written in Ruby ... I believe it's written in Eiffel.
>

Arachno isn't open source.

Come to that, neither is our IDE (Ruby In Steel).

Currently Arachno has a fast debugger and our free edition has a slow
debugger. Our commercial edition will, however, have a very fast debugger
and that certainly isn't written in Ruby. But no, I'm afraid that won't be
open source either ;-)

best wishes
Huw Collingbourne

http://www.sapphir...
Ruby Programming In Visual Studio 2005


Martin Coxall

10/13/2006 3:51:00 PM

0

> Arachno isn't open source.
>
> Come to that, neither is our IDE (Ruby In Steel).

The eclipse-based Ruby Development Tools are pretty good, if you can
get beyond the fact that they're written in Java...

Martin

Shea Martin

10/13/2006 4:31:00 PM

0

Huw Collingbourne wrote:
> "Jeff Wood" <jeff@dark-light.com> wrote in message
> news:452FA4BF.20207@dark-light.com...
>> Shea Martin wrote:
>>> Does anyone know of an open source ruby ide w/ debugger which is not
>>> written in ruby?
>> Arachno IDE is not written in Ruby ... I believe it's written in Eiffel.
>>
>
> Arachno isn't open source.
>
> Come to that, neither is our IDE (Ruby In Steel).
>
> Currently Arachno has a fast debugger and our free edition has a slow
> debugger. Our commercial edition will, however, have a very fast debugger
> and that certainly isn't written in Ruby. But no, I'm afraid that won't be
> open source either ;-)
>
> best wishes
> Huw Collingbourne
>
> http://www.sapphir...
> Ruby Programming In Visual Studio 2005
>
>


Did you write your own debugger(s) for the editor or do you know of a
way to tie into debug.rb?
~S

Shea Martin

10/13/2006 4:37:00 PM

0

Martin Coxall wrote:
>> Arachno isn't open source.
>>
>> Come to that, neither is our IDE (Ruby In Steel).
>
> The eclipse-based Ruby Development Tools are pretty good, if you can
> get beyond the fact that they're written in Java...
>
> Martin
>


Maybe I will look at the source for that.

My problem is that I like using gvim for editing. I rarely have
projects over one file.

I usually use -rdebug on the CLI, but I like how a gui debugger gives a
better feel for where the current line of execution is. Also the
mouse-hover for variable values is handy. I don't need to do editing.
I just want something fast to popup and debug a script.

I guess similar in concept to insight, for gcc/gdb.

~S

Huw Collingbourne

10/13/2006 5:44:00 PM

0


"Shea Martin" <shea@null.net> wrote in message
news:8bPXg.4879$cz.69051@ursa-nb00s0.nbnet.nb.ca...
> Did you write your own debugger(s) for the editor or do you know of a way
> to tie into debug.rb?

In the free edition we have a debugger comprising some Ruby and some C#.
Ruby does the evaluation; C# does the Visual Studio stuff (setting and
displaying breakpoints; drag-and-drop watch variables; an integrated
evaluation console; trace-into/over; autos, locals, run-to, call stack
etc.). It's a pretty decent debugger, I think (then again, I'm biased!),
which lets you debug both Ruby and Rails applications. But, even though
people have told us they find it fast enough, personally, I am still
dissatisfied with the speed (put simply, it's not as fast as Microsoft's C#
or C++ debugger) which is why we decided to create a completeley new
debugger for the commercial release of Ruby In Steel.

The debugger in the commercial edition is dramatically faster and much more
powerful (we are already using it internally but we still have some work to
do before it goes out to our beta testers). I'm afraid that we don't plan to
reveal too much regarding the implementation details of the commercial
debugger ;-)

best wishes
Huw Collingbourne

http://www.sapphir...
Ruby Programming In Visual Studio 2005


Shea Martin

10/13/2006 9:56:00 PM

0

Huw Collingbourne wrote:
> "Shea Martin" <shea@null.net> wrote in message
> news:8bPXg.4879$cz.69051@ursa-nb00s0.nbnet.nb.ca...
>> Did you write your own debugger(s) for the editor or do you know of a way
>> to tie into debug.rb?
>
> In the free edition we have a debugger comprising some Ruby and some C#.
> Ruby does the evaluation; C# does the Visual Studio stuff (setting and
> displaying breakpoints; drag-and-drop watch variables; an integrated
> evaluation console; trace-into/over; autos, locals, run-to, call stack
> etc.). It's a pretty decent debugger, I think (then again, I'm biased!),
> which lets you debug both Ruby and Rails applications. But, even though
> people have told us they find it fast enough, personally, I am still
> dissatisfied with the speed (put simply, it's not as fast as Microsoft's C#
> or C++ debugger) which is why we decided to create a completeley new
> debugger for the commercial release of Ruby In Steel.
>
> The debugger in the commercial edition is dramatically faster and much more
> powerful (we are already using it internally but we still have some work to
> do before it goes out to our beta testers). I'm afraid that we don't plan to
> reveal too much regarding the implementation details of the commercial
> debugger ;-)
>
> best wishes
> Huw Collingbourne
>
> http://www.sapphir...
> Ruby Programming In Visual Studio 2005
>
>


Thanks for the info. When we upgrade to VS2005 I'll look into RIS.
~S