Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Ignored QDebug instructions



  • My program crashes at some point due to unknown reasons. Attempting to find and solve the bug, I placed a couple of qDebugs on the way to see the status. However, some of them are simply ignored. I know the program is running those instructions, they are just not displayed.
    Example:

    f()
    {
    QString a="abcd";
    qDebug()<< a;
    ...
    qDebug()<<"done";
    

    output: done
    Does anyone know why this is happening?



  • @Paul-Orasan
    This looks to me like a symptom of a blown stack.
    Somewhere in your code, and not necessarily in the function that fails,
    you are probably overwriting a local buffer.


Log in to reply