← Back to team overview

maria-developers team mailing list archive

Re: IDE debugging Mariadb linux build

 

I can report to all the developers for MariaDB on linux
that Netbeans 7.1.2 is working VERY well on Fedora 14 - 64 bit.

Vladislav indicated he used only Windows Visual studio and OSX Xcode.

It has a great Find It Grep support and the debugger is easy to set
breakpoints and run the code.

Marco

On 9/7/2012 3:55 AM, Vladislav Vaintroub wrote:

-----Original Message-----
From: maria-developers-
bounces+wlad=montyprogram.com@xxxxxxxxxxxxxxxxxxx [mailto:maria-
developers-bounces+wlad=montyprogram.com@xxxxxxxxxxxxxxxxxxx] On
Behalf Of md@xxxxxxxxxxxxx
Sent: Freitag, 7. September 2012 03:00
To: maria-developers@xxxxxxxxxxxxxxxxxxx
Subject: [Maria-developers] IDE debugging Mariadb linux build

I am using cmake -G"CodeBlocks - Unix Makefiles" to load the 5.5.25
project into CodeBlocks for building and editing.

Does anybody use KDevelop4 or Codeblocks to build mariadb?
I used KDevelop some time ago (half a year or so), and Codeblocks long-long
ago (still with vanilla MySQL)

If so, how do you set the parameters up so you can run the server in
gdb debug?
Debugging and building are slightly different things. CMake does not have
builtin support for IDE-debugging, so you need  to use a semi-manual method
.

I found the below method useful
1. Switch to build directory
2. cd mysql-test
3. perl mysql-test-run.pl  --start 1st --manual-debug

This will create database directory, config file, and write  path for mysqld
executable together working directory and args to the console.  You can
copy/paste it into IDE, where debug parameters for executable are stored  (I
do not know btw where KDevelop4 has parameters for debugging, I just
describe the process I used in Visual Studio and Xcode )

Is there a way to run mysqld without mysql_safe monitor daemon in front
of it?
Yes,  for example the one above.







References