I know this is slightly off-topic, since it’s really more of a gdb
question than a ruby question. My appologies.
I need to place a breakpoint in a Ruby extension. I can’t do this
before the program runs, because the extension hasn’t yet been loaded.
So I’m currently doing this by:
- b main
- b rb_f_require
- When the program breaks in rb_f_require, continue until I hit the
- Place my breakpoint at the appropriate place in the extension.
Something tells me, though, that there must be a better way to do this.