To run a test named
some.test with the
debugger in embedded mode you could do this:
libmysqld/examples/test_run --gdb some.test. This creates a
libmysqld/examples/test-gdbinitfile which contains the required parameters for mysqltest.
Make a copy of the
test-gdbinitfile (call it, for example,
test-gdbinitfile will be removed after
test-run --gdbhas finished.
libmysqld/examples/mysqltest_embeddedinto your favorite debugger, for example:
In the debugger, for example in
some.test is running, and you can see
if it's passing or not.
If you just want to debug some queries with the embedded
server (not the test), it's easier to just run
libmysqld/examples/mysql. It's the embedded
server-based clone of the usual
mysql tool, and works fine
under gdb or whatever your
favorite debugger is.