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. QML debugging no longer works (Could not connect to the in-process QML debugger. Do you want to retry?)
QtWS25 Last Chance

QML debugging no longer works (Could not connect to the in-process QML debugger. Do you want to retry?)

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
windowsqml debuggerx64
5 Posts 3 Posters 692 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
    parteimeister
    wrote on 18 Dec 2024, 11:20 last edited by
    #1

    After recent updates of Windows, my QML debugger stopped working with the error "Could not connect to the in-process QML debugger. Do you want to retry?".
    This problem is present in Windows 11 and Windows 10.
    In the "General Messages" tab I have messages like "LanguageClient Qmlls (C:\Qt\6.8.1\msvc2022_64\bin\qmlls.exe): The command "C:\Qt\6.8.1\msvc2022_64\bin\qmlls.exe" terminated with exit code 1. (see logs in "C:/Users/User/AppData/Local/Temp/QtCreator-rDvXvi/lspclient.oyaMXm.log")", but the specified log file does not contain any useful information:

    Starting server: C:\Qt\6.8.1\msvc2022_64\bin\qmlls.exe
    Output:
    

    I tried to install the latest Qt and Visual Studio on an old computer that hadn't been updated for a couple of months (OS Windows 10). The debugger works there, so the problem is definitely in the incompatibility of the latest versions of Windows and Qt.
    Enabling and disabling QML Language Sever has no effect.
    The problem occurs regardless of the selected compiler (MSVC 2022, MinGW, etc.)
    Disabling the built-in antivirus and firewall also has no effect.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      parteimeister
      wrote on 22 Dec 2024, 11:26 last edited by
      #5

      I got even deeper into the problem. It turns out that if the "Default for "Run in terminal"" option is enabled (Edit - Preferences - Build & Run), then this error will occur. Everything returns to normal if you disable this option.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Antony007
        wrote on 19 Dec 2024, 10:45 last edited by
        #2

        I am facing the same issue too

        1 Reply Last reply
        0
        • L Offline
          L Offline
          linxi
          wrote on 20 Dec 2024, 12:28 last edited by
          #3

          I am facing the same issue too

          1 Reply Last reply
          0
          • P Offline
            P Offline
            parteimeister
            wrote on 22 Dec 2024, 10:48 last edited by
            #4

            God bless ChatGPT!

            ChatGPT suggested me to clear Qt Creator cache (%APPDATA%\QtProject\QtCreator) as a solution, and it worked!

            1 Reply Last reply
            0
            • P parteimeister has marked this topic as solved on 22 Dec 2024, 10:52
            • P Offline
              P Offline
              parteimeister
              wrote on 22 Dec 2024, 11:26 last edited by
              #5

              I got even deeper into the problem. It turns out that if the "Default for "Run in terminal"" option is enabled (Edit - Preferences - Build & Run), then this error will occur. Everything returns to normal if you disable this option.

              1 Reply Last reply
              0
              • P parteimeister has marked this topic as solved on 25 Dec 2024, 20:26
              • P parteimeister has marked this topic as solved on 25 Dec 2024, 20:26
              • P parteimeister has marked this topic as solved on 25 Dec 2024, 20:27

              2/5

              19 Dec 2024, 10:45

              • Login

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