Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33474

Breakpoint in c++ header file leads to slow (30 second+) start of program in debugging mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 13.0.0, Qt Creator 17.0.1
    • Debugger
    • None
    • Linux Mint 21.1 / Ubuntu 24.04
      g++-14
    • Linux/X11

      I have an issue with a very slow-starting debugger when launching a c++ debugging session from within QtCreator. It takes about 30 seconds before my program launches, making repeated debugging restarts quite painful. The same program starts in less than 1 second when running gdb from my system terminal.

       

      This output in my debugger log caught my eye:

       

      d[GDB]      
      dNON-CRITICAL TIMEOUT 
      dCOMMANDS STILL IN PROGRESS: 
      >=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<MULTIPLE>",times="0",original-location="/home/[..]/logging.h:304",locations=[{number=
      "1.1",enabled="y",addr="0x000055555556c392",func="Log::error::~error()",file="/home/[..]/logging.h",fullname="/home/[..]/logging.h",line
      ="304",thread-groups=["i1"]},{number="1.2",enabled="y",addr="0x00007ffff77b7e52",func="Log::error::~error()",file="/home/[..]/logging.h",fullname="/home/[..]/logging.h",line="304",thread-groups=["i1"]}]}
      
      

       

      Moving the destructor code where my breakpoint was set to a .cpp file solved the slow start.

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hjk hjk
            frcs Fcs Prk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes