Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Ignored QDebug instructions
Qt 6.11 is out! See what's new in the release blog

Ignored QDebug instructions

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 596 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Paul Orasan
    wrote on last edited by
    #1

    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?

    mranger90M 1 Reply Last reply
    0
    • P Paul Orasan

      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?

      mranger90M Offline
      mranger90M Offline
      mranger90
      wrote on last edited by
      #2

      @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.

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved