Qt Creator won't stop at breakpoints
-
Are you building in Debug mode? If you compile in release, debugger has no symbols to catch on runtime.
-
Just to make sure I'm doing the right thing, how do I build in Debug mode?
What I'm currently doing is:
Clean All
Rebuild AllThen, with the Project set to Debug (the fourth button from the bottom in the lower left corner), I click on the Debug button (the second button from the bottom in the lower left corner).
-
Good steps but in wrong order :)
Set Project to Debug mode (Projects pane on the left, or fourth icon from the bottom, as you already wrote).
Clean All.
Rebuild All / Run Debugger (second icon from the bottom or F5).
-
I also have the same problem. Now I install gdb from macports and (it seems) all works. I cannot say exactly yes, because I not use qt creator too often now. But kind of it works. The two things:
- You must sign your new gdb with codesign using self-created code certificate (create it using key chain application)
- You must edit /usr/bin/gdb script to make it to call your new gdb instead old one.
-
-
Just a bit more on this problem - I checked the sizes of the two executables and they're identical - shouldn't the debug version be bigger?
Also, the two paths are:
/Users/chris/Desktop/pencil2d-code/debug shadow build/release
/Users/chris/Desktop/pencil2d-code/release shadow build/release
Does the fact that both paths put the executable in a "release" folder indicate anything?
-
[quote author="cpsmusic" date="1359163689"]Just a bit more on this problem - I checked the sizes of the two executables and they're identical - shouldn't the debug version be bigger?
Also, the two paths are:
/Users/chris/Desktop/pencil2d-code/debug shadow build/release
/Users/chris/Desktop/pencil2d-code/release shadow build/release
Does the fact that both paths put the executable in a "release" folder indicate anything?[/quote]
Yes, debugging must me bigger and noticeably bigger. For example write simplest Hello World in usual C and compile it with and without -g flag. If you have the same executable sizes, this means that you have wrong settings. Check qmake flags for debugging target. It must be some like this:
qmake /Users/eugenk/Projects/QT/qt-creator-2.6.1-src/qtcreator.pro -r -spec macx-g++ CONFIG+=debug CONFIG+=x86_64 CONFIG+=declarative_debug CONFIG+=qml_debug