A page has been added to the wiki which describes how to debug Harvey using gdb. See Debugging Harvey in gdb for details.