The executable is a lot easier to debug now.  The process is started in another xterm window and we do a grep for the right process id to attach the debugger to.  A lot clunky, but it's not worth putting more time into.