Mixing of debugging and irb?

M

Michael Lesniak

Hello,

I have a (stupid?) question. I have a class which I'd like to debug
with the builtin ruby-debugger. When I fire up the ruby-debugger I'd
like to be able to evaluate the whole class and generate instances
afterwards. The problem: When i use c(ontinue), the debugger is exiting
after evaluation.

Any ideas how to enter code after file evaluation (except writing it
into the file itself which would be more or less non-dynamical
debugging)?

Thanks
Michael
 
F

Florian Gross

Michael said:
Any ideas how to enter code after file evaluation (except writing it
into the file itself which would be more or less non-dynamical
debugging)?

I'm not sure if I'm understanding you correctly, but you might want to
have a look at ruby-breakpoint which will spawn an IRB shell wherever
you need it. It's homepage is at http://ruby-breakpoint.rubyforge.org/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,678
Latest member
Aniruddha Das

Latest Threads

Top