[Qt-creator] pause debugger on assert?
Liam Staskawicz
lstask at gmail.com
Wed Feb 22 22:27:46 CET 2012
On Wed, Feb 22, 2012 at 1:02 PM, Orgad and Raizel Shaneh
<orgads at gmail.com>wrote:
> On Wed, Feb 22, 2012 at 10:48 PM, Liam Staskawicz <lstask at gmail.com>wrote:
>
>> Hi,
>>
>> I'm developing a Makefile based non-Qt C++ project on Windows with mingw
>> and Qt Creator 2.4.1 at the moment, and just about everything is working
>> splendidly - thanks! 2 minor issues I'm having:
>>
>> - when I'm debugging (with GDB), the debugger does not pause when an
>> assert() is triggered, and instead exits without giving me a chance to
>> examine the stack, etc. Is this expected behavior? Is there a recommended
>> way to configure the debugger to pause on assert?
>>
>> - when debugging, stdout gets routed to the debug console (mixed with the
>> other debug output) instead of to the 'Application Output' tab as it does
>> when run normally. Is it possible to configure the debugger to send stdout
>> to the Application Output console?
>>
>> Thanks!
>> Liam
>>
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>>
>> Hi,
>
> The first issue was resolved in master, see
> http://codereview.qt-project.org/13171.
>
> Regarding stdout, is this a console application? First, add CONFIG +=
> console to your pro file (assuming you're using qmake), then click Projects
> on the side bar, Run Settings tab and check 'Run in terminal'.
>
> - Orgad
>
Great! Glad to see the first one resolved already, will be looking forward
to that.
For the stdout issue, I am not building a Qt app, just a standard C++ app
via Makefile, not qmake. The logs in question are from normal printf()
output. As I mentioned, the output is captured properly in the 'Application
Output' tab when not debugging, just while debugging it gets redirected to
the debug console and mixed with other debugger output.
Thanks!
Liam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120222/89a12d61/attachment.html>
More information about the Qt-creator
mailing list