Home > drizzle > Debugging Drizzle with GDB remotely from OS X

Debugging Drizzle with GDB remotely from OS X

March 24th, 2009

If you’re a Mac user and often work remotely on Drizzle with Linux via SSH, this post is for you.

At some stage in your development process, you might come across a situation where you want to use GDB to see what’s going on inside the server process. Doing this is really simple as described in the Drizzle wiki:

$ cd /path/to/drizzle_source/tests
$ ./dtr --start-and-exit --gdb

However, you will find that the Server process will always fail to start. Don’t stress yet, the issue is simple. The --gdb startup routine fails because it tries to interact with a X server which you haven’t loaded.

Does this sound familiar? what you want to do in this case is use X11.app instead of Terminal.app (or iTerm) and ssh into the remote box with the -X option. You should then be able to simply follow the instructions on the Drizzle wiki.

That’s it, easy :)

Toru Maesaka drizzle , ,

  1. March 31st, 2009 at 06:33 | #1

    You could also just do: “ssh -X myserver” to start the X11.app automatically?? At least that happens on my macbook when I ssh into my opensolaris box :)

  1. May 21st, 2009 at 19:36 | #1
  2. January 21st, 2010 at 02:24 | #2