So now you know why it doesn't work from within KDevelop as well
Please open the project options dialog in KDevelop, go to "Debugger" tab and check what is written in the "Debugger executable" line edit.
So now you know why it doesn't work from within KDevelop as well
Please open the project options dialog in KDevelop, go to "Debugger" tab and check what is written in the "Debugger executable" line edit.
Debugger shell should be empty and debugger executable should be set to /usr/bin/gdb.
vieraci (12th September 2007)
Thanks, debug is doing something now, although I can't seem to find where the Trace window is, app doesn't appear to stop on breakpoint, AND getting KDevelop errors when trying to watch variables.
Debugger error
Debugger reported the following error.
No symbol "myVariable" in current context.
I'll see if I can figure it out from here.
Make sure you compile in debug mode and that you have the debugger plugin activated for your project.
.pro file includes:
CONFIG += debug
CONFIG += qt debug
Debugger frontend is enabled in KDevelop Settings.
Did you enter this "myVariable" somewhere?
Yes, when debug is started, a "Variables" tab is added to the left of the IDE. I manually added it in that window and also by hilighting the variable in the source code window and add it from the popup menu. Both methods give the same result.
Although I deleted the watch entries, closed the project and re-built it, the same error dialog still pops up every time the variable is accessed in a debug session.
While the app is running, the Breakpoint icon in the source window is red.
Another odd thing, in the IDE Debug pulldown menu, the available options are:
Stop
Interrupt
Set Execution position to cursor
Restart
But these menu options are disabled:
Run to cursor
Step Over
Step over instruction
Step Into
Step Into Instruction
Step out
For what it's worth, the Shell window that opens doesn't seem to do anything. It's just a blank shell with no prompt, nothing gets sent to it.
Just now as I closed the running app, KDevelop debug dialog reported numerous error messages, all the same:
No registers
Then the debugger encountered an internal error reported by gdb, "Please submit a bug report".
Last edited by vieraci; 12th September 2007 at 14:08.
honest581 (17th September 2007)
ok,i also met the same proplems ,i donot know how to resolve them .anyone know where is some documents about using debugger in kdevelop ?my email honest581@yahoo.com.cn,
expect somebody give me some advice!
i have search forums in China,but there no answer,i think here i would like get something!
Bookmarks