I have lot of debug statements in my Qt project. The app randomly hangs and crashes. I was wondering if the qDebug statements are degrading the app performance in any manner.
qDebug statements will surely slow down the app, as all tracing / debugging statements do.
But it should not be significally.
If the debug statement crashes, it is typically a wrong statement or a wrong parameter.
They execute when you build your app with debug support enabled. As I don't know, how you build for the phone, I can't tell you.
If debugging is disabled, they result in NOPs.
They execute even if you build your app in release mode. You can even reroute output using qInstallMsgHandler() to write it in file, or send it through network, etc...