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

debuggee startup slow with CDB and unsynchronized breakpoints

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 6.0.2
    • Debugger
    • None
    • Windows

    Description

      note: this is not a bug in QtCreator per-se, but maybe there's a workaround that can be implemented or a debugger option that can be set to make that annoying behaviour go away.

      to reproduce this behaviour:

      • debug an application that loads dlls dynamically
      • set at least one breakpoint somewhere in the source code of one of the dynamically loaded dlls
      • show timestamps in debugger log
        • right-click: check "log timestamps"
      • f5

      when the application is running, the debugger log should show that all module load times after setting the unsynchronized breakpoint (cdb command: bu) are slow (starting at 10ms, and increasing for every additiona dll that's being loaded).

      This issue can be reproduced when starting CDB via command line, so the fault doesn't lie with QtCreator. 

      Disabling the breakpoint doesn't improve dll load times, since CDB still seems to try to sync the breakpoint after every module load.

      Since the startup time increases the more dlls are loaded, this becomes more and more of a problem when working with large applications. For context: our application startup time (on my machine) is now about 42s with breakpoints and ca. 20s without breakpoints.

       

      attached are two log files from a smaller project that exhibits this behaviour. I'm pretty sure one of the qt demos will work as well, as long as it loads dlls dynamically.

       

      Attachments

        Issue Links

          Activity

            People

              davschul David Schulz
              schoebey roman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: