Reputation: 393
When I try to run a Debug build of my application, with the debugger attached, on my phone via USB debugging, I get a message saying:
This does not seem to be a "Debug" build. Setting breakpoints by file name and line number may fail.
I am able to set breakpoints in my main function, but I cannot get access to intermediate values or set breakpoints in any sub-functions.
Screenshot:
Upvotes: 4
Views: 3299
Reputation: 186
I ran into a similar problem and the problem in my case was that gdb was being run with the cdb engine. It may have resulted from corruption in the Qt Creator profiles.xml
file.
To check, go to tools -> options -> build and run -> kits and select the kit you are using. Next, go to the debugger line, choose edit, and make sure you have the right engine for your debugger.
If that is not it, to debug further, consider looking closely at your Makefiles, execution directories, et c. Another question that was related to the "does not seem to be a debug build" message was resolved by simply cleaning and rebuilding. Another solution might be to build a new fresh kit.
Upvotes: 5