PDA

View Full Version : QT Program debug,GDB on Linux



darpan
26th January 2007, 20:54
Hi,
I am new to qt linux. I want to know about the ways of debuging qt program in linux.
(1) I go through the GDB debugger on linux.
I have following questions:
To Debug using GDB, with which option i have to compile the qt program on terminal.
how i can put a break point in qt program function.
(2) if i take my qt project in kdevelop , how can i set environment variable in kdevelop to build the qt program succesfully.

Thanks and Regards

jacek
26th January 2007, 22:02
To Debug using GDB, with which option i have to compile the qt program on terminal.
The minimum is to use "-g" option. If you use qmake, add "CONFIG += debug" to your .pro file.


how i can put a break point in qt program function.
http://sourceware.org/gdb/current/onlinedocs/gdb_6.html#SEC33


if i take my qt project in kdevelop , how can i set environment variable in kdevelop to build the qt program succesfully.
http://wiki.qtcentre.org/index.php?title=Qt4_projects_using_KDevelop3

Please, don't ask unrelated questions in a single thread.