|
|||||||
| General KDE General KDE issues. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello !
I'm having problems using the debugger in kdevelop QT applications. Debugger will only work in the main function. If i set breakpoints in other places i get the following in the GDB window: /usr/bin/gdb /home/titus.lupoian/Projects/testQLCD/src/src --interpreter=mi2 -quiet Using host libthread_db library "/lib64/libthread_db.so.1". (gdb) Process exited I'm using qt-4.3.4 , fedora core 8, KDE 3.5.9-5.fc8 i've added to pro file: (I tryed with combinations of these..still get the error) CONFIG += debug CONFIG += qt debug CONFIG +=debug_and_release project settings->debugger->debugger executable: /usr/bin/gdb Does the debugger in kdevelop QT app work for you? If anyone can help me... pls reply. Best regards, Titus |
|
#2
|
|||
|
|||
|
I think I know what your problem is.
Go to the "QMake Manager" -> right click the project icon that appears there -> "Subproject settings" -> go to the "Build Options" tab -> "Compiler Options" text edit and "-g" or "-pg" there. Alternatively in the .pro file you can add: "IDL_OPTIONS += -pg" This is for telling the compiler to include debug symbols. I think this is your problem, not having debugging symbols. |
|
#3
|
|||
|
|||
|
Thank you for replying alecs,
i've added -p or -pg to Compiler Options -> Debug flags and/or "IDL_OPTIONS += -pg" to the pro file , but it still gives me the same error. I tryed also with debug arguments. |
|
#4
|
|||
|
|||
|
Could you add some more details? I mean what you are compiling, if that is not too private, where you put the breakpoint. I have problems with KDevelop each time I start a new program
.Also you could try the KDE devel IRC channels, some of them have more people than a forum. If you go to IRC don't forget to come back with the results. |
|
#5
|
|||
|
|||
|
Ok here it is: if i put a breakpoint in main and continue debugging with step in/over/out i can enter other functions and classes...and after a while i can actually reach the point where i wanted to put a breakpoint. But this is not a solution...debugger runs very slow and god knows how much time it will take to reach a certain point.
Here is an example: (if i put a breakpoint here its no problem) Qt Code:
Qt Code:
|
|
#6
|
|||
|
|||
|
See if gdb works fine by itself.
In a console type: Qt Code:
Qt Code:
You can try setting breakpoints with Qt Code:
Qt Code:
I don't know what the error means, as searching for it I didn't find the problem. Also, debugging should not be that slow if you don't make huge steps. |
|
#7
|
|||
|
|||
|
I spent hours trying to solve it and it apeared that
LIBTOOL was not installed in the system THere should be some warning or at least libtool should be added as required dependancy in package |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Debugging with kdevelop (gdb) | Atomino | Qt Programming | 0 | 1st February 2008 17:51 |
| problem with indexes | MarkoSan | Qt Programming | 5 | 10th December 2007 15:55 |
| Problem with SqLite and Qt | ad5xj | Newbie | 26 | 5th June 2007 02:53 |
| KDE/QWT doubt on debian sarge | hildebrand | KDE Programming | 13 | 25th April 2007 07:13 |