Breakpoints within the framework code
-
wrote on 1 May 2015, 19:34 last edited by koahnig 5 Feb 2015, 10:14
Hi,
is there any way one can set break points within the code of the qt framework itself from within qt creator?Any help would be greatly appreciated!
-
Hi,
What platform are you running on ?
-
wrote on 2 May 2015, 09:48 last edited by OldDeath 5 Feb 2015, 09:48
Win7 x64 using a VS2013 toolchain with a Qt library I've compiled myself.
Do you need any more details?
-
Win7 x64 using a VS2013 toolchain with a Qt library I've compiled myself.
Do you need any more details?
wrote on 2 May 2015, 10:13 last edited by koahnig 5 Feb 2015, 10:13@OldDeath
Check under "tools"->"options"->"build&run" that the "Kits" and the "Debuggers" are correctly set up.
Can you start the debugger with F5?You can use the debugger only when you have "debug" compilation. Release mode compilations it looks sometimes as you can debug, but it will not stop at breakpoints set with F9 or other possibilities.
Note: I am using MiinGW on Win 7 64 bit, but assume it is the same with the VS tool chains.
-
Lifetime Qt Championwrote on 2 May 2015, 16:11 last edited by Chris Kawa 5 Feb 2015, 16:11
If you built Qt yourself and didn't move the build dir or the source dir afterwards (important!) then you should already be able to debug into Qt sources.
If not, then go to Tools->Options->debugger->General and in the "Source Path Mapping" section click "Add Qt sources" and add the Src directory of Qt there. Now you should be able to debug into Qt sources and set breakpoints in it like in your own code. -
To add to my fellow and maybe a silly question but since you build Qt yourself did you do a debug_and_release build ?
3/6