You can attach GDB to a Ruby process and get all sorts of information. Call with gdb /path/to/ruby <PID>, then running call rb_backtrace() from within gdb will get you a stack trace and you can raise exceptions with call rb_raise(rb_eException, “Testing…”). Neat trick, see here for the original source. I should add that in Ruby…
Tag: debugging
Debugging bash functions
This one took me forever to figure out, so documenting it here in the hopes I’ll remember it now. ;] If you have a function that is sourced from a bash script, it’s hard to debug because you can’t just do the usual {bash}bash -x script.sh{/bash} thing – all that will do is run the…
CakePHP and XDebug
So this is not going to come as much of a shock to people experienced with CakePHP, but I’m just learning now and liking what I’m seeing. CakePHP 1.3 has a really nice set of conventions to work against and provides a seemingly pretty good scaffold for most typical webapps, so I’m thinking I’ll be…
PHP ZendDebugger and WAMP
So I wanted to write about my woes with PHP ZendDebugger and the latest WAMP install. Bottom line: I can’t get it to work with PHP 5.3 yet. I believe this is an incompatibility in the debugger DLLs that I have been able to find for 5.3 – looks like the linkers used are incompatible…