mxcl/homebrew — pull request #14648 by danburkert (2012-09-02 19:16:32+00:00)
Title: add option to compile MySQL with debug support 

Add an option `--with-debug` which will compile MySQL with support for debugging. This is necessary to output a trace log, as well as debug a MySQL process with gdb (see http://dev.mysql.com/doc/refman/5.5/en/debugging-server.html for more uses).

Potential use cases: debugging a faulty MySQL, or developing a plugin for MySQL.

I have tested this with Mountain Lion and MySQL 5.2.27