Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator Debug button disabled / breakpoints not hit with custom executable (Shotcut build)
Qt 6.11 is out! See what's new in the release blog

Qt Creator Debug button disabled / breakpoints not hit with custom executable (Shotcut build)

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 153 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.
  • A Offline
    A Offline
    Amit Khobragade
    wrote last edited by
    #1

    Hi,

    I’m trying to use Qt Creator purely as a debugger for an externally built Qt application (Shotcut, which uses the MLT framework), and I’m running into issues with the debugger setup.

    Setup:

    • OS: Windows
    • Build method: Official build-shotcut-msys2.sh script
    • Qt: 6.10.x (MSYS2 MinGW build)
    • Qt Creator: (your version)
    • Compiler/Kit: MinGW (matching MSYS2 environment)

    What works:

    • Shotcut builds successfully.
    • Running shotcut.exe directly works without issues.

    What I’m trying to do:
    Use Qt Creator only for debugging (no build inside Qt Creator).


    Issues:

    1. Debug button disabled

      • After creating a custom Run configuration (Custom Executable), the Debug (F5) button is disabled.
      • It seems Qt Creator does not recognize the setup as debuggable.
    2. Breakpoints not hit (in some cases)

      • In certain attempts, I managed to start debugging (e.g., via Application Output pane).

      • However:

        • Breakpoints are not reliably hit.
        • Stepping (F11) does not work as expected.
    3. Application exits immediately (when debugger does start)

      • When debugging does start:

        • App launches
        • Then exits quickly without clear error

    Qt Creator configuration:

    • Build and Clean steps disabled

    • Custom Run configuration:

      • Executable: shotcut.exe (from MSYS2 build)
      • Working directory: set to build/runtime folder
      • Environment: PATH adjusted to include required DLLs
    • Noted that the auto-generated configuration:

      build/shotcut/src/shotcut.exe
      

      is not editable, so I created a new one.


    Suspicions:

    • Kit configuration might be incomplete (debugger not properly attached?)
    • Qt Creator may not treat “Custom Executable” as debuggable unless something specific is set
    • Environment mismatch (MSYS2 vs Qt Creator)
    • Possible leftover/invalid run configurations interfering

    Questions:

    1. What is the correct way to enable debugging for a custom executable in Qt Creator?
    2. Why would the Debug button remain disabled even when an executable is set?
    3. What configuration is required for Qt Creator to recognize breakpoints and allow stepping?
    4. Is there a recommended workflow for debugging MSYS2-built Qt apps inside Qt Creator?

    If needed, I can share screenshots, kit configuration, or debugger logs.

    Thanks!

    1 Reply Last reply
    0
    • cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote last edited by
      #2

      I don't think somebody tests this hybrid use case.

      The easiest way to get things running is to have consistency. Do install Qt Creator and MinGW from MSYS2.

      See mingw-w64-x86_64-qt-creator and mingw-w64-x86_64-gcc.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Amit Khobragade
        wrote last edited by
        #3

        thanks cristian for reply....

        as we can clearly see the problem, MLT has very limited (maybe old and obsolete) documentation for steps on compiling MLT (including Shotcut) in Windows platform, hence, the hybrid thing was the approach for successful compilation.

        if possible can I have links to documentations for compilation on Windows platform, and in case if further new development is required using MLT framework, which QTCreator needs to be used.?

        1 Reply Last reply
        0

        • Login

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