Debugging with message boxes using a widget application?
-
I'm trying to debug my application using message boxes as in VS2008, but unlike visual studios, the message boxes do not stop the code until they've been closed. Is there a way to make it so that the message box will force the user to close the box before the code progresses?
-
sums up,
Try the debug tools like dbx on unix,gdb on linux first
Try qDebug("(%s,%d), your debug message", FILE, LINE); or std::cout....
use QMessageBox::information(NULL, "Debug Information", QString("%1,$2...Your debug message").arg().arg()...);
[Edit: List formatting; mlong]
-
Thank you all for the replies. Will be trying the style I wanted initially and then probably break points followed by qDebug.
Cheers