Debugger pains

T

tuti plain

Hi all,

I am testing a script using the built-in debugger (running 1.8.6 -
windows - one click installer version). I want to set a breakpoint on a
particular method. The problem is, my first line is

require'sqlite3'

which causes the debugger to start in the rubygems.rb script. Of course
I don't want to debug the require script. How can I make the debugger
skip this?
 
J

Jano Svitok

Hi all,

I am testing a script using the built-in debugger (running 1.8.6 -
windows - one click installer version). =A0I want to set a breakpoint on = a
particular method. =A0The problem is, my first line is

require'sqlite3'

which causes the debugger to start in the rubygems.rb script. =A0Of cours= e
I don't want to debug the require script. =A0How can I make the debugger
skip this?

http://theshadowaspect.com/posts/debugging-ruby.html

or

require 'rdebug'
...
breakpoint

i'm not sure about this. check rdebug documentation how exactly write
it. In short,
you can set breakpoints either from debugger ui, or by writing calls
directly in the code.

warning: it's been long time since I used this, so details might be wrong.
 

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
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top