Archive

Posts Tagged ‘debugging’

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 , ,