interacting with ruby program

N

Navindra Umanee

Hi Florian,

Florian Gross said:
This would be possible by using a secondary thread that keeps spawning
up breakpoints. E.g.:

require 'breakpoint'
Thread.new do
loop do
begin
breakpoint
rescue Exception
end
end
end

After that you could use the breakpoint_client to get a live shell where
you could change and check basically everything.

I am doing this now, but the problem is that I have quite a few
configuration parameters stored in global variables such as $bg_color
that I would like to inspect and change. However, since breakpoint is
running in its own thread I can't seem to access these.

Any ideas how I might get it to do that?

Thanks!

Cheers,
Navin.
 
N

Navindra Umanee

I am doing this now, but the problem is that I have quite a few
configuration parameters stored in global variables such as $bg_color
that I would like to inspect and change. However, since breakpoint is
running in its own thread I can't seem to access these.

Sorry Florian, my initialisation order was wrong and I got confused.
It actually works.

Breakpoint is working superbly!

Cheers,
Navin.
 

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

No members online now.

Forum statistics

Threads
474,167
Messages
2,570,911
Members
47,453
Latest member
MadelinePh

Latest Threads

Top