Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Diana Bogdan
Inspect a variable at a breakpoint [ reply ]  
2011-08-06 22:49
I'm just trying to get the value of a variable at a certain breakpoint with rdebug-ide but can't seem to find the proper command for that.


I can start rdebug-ide on my machine via the command line:


$>: rdebug-ide -p 1234 --xml-debug main.rb
Fast Debugger (ruby-debug-ide 0.4.16, ruby-debug-base 0.10.4) listens on 127.0.0.1:1234
...


then I connect over telnet and set a breakpoint:


$>: telnet localhost 1234
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
<message debug='true'>Starting command read loop</message>b main.rb:4
<message debug='true'>Processing: b main.rb:4</message>
<breakpointAdded no="1" location="main.rb:4"/>start
<message debug='true'>Processing: start</message>
<message debug='true'>Starting: running program script</message>
<breakpoint file="main.rb" line="4" threadId="1"/>
<message debug='true'>Stopping Thread #&lt;Thread:0x1001a4360&gt;</message>
<message debug='true'>Threads equal: true</message>


but how can I inspect the value of a variable at that breakpoint???