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 no qDebug() output in debug mode - Qt 6.10.2

Qt creator no qDebug() output in debug mode - Qt 6.10.2

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
13 Posts 5 Posters 341 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.
  • M Offline
    M Offline
    MHMart_asc
    wrote last edited by
    #1

    I have a fresh installation of Qt creator on windows 11 but unfortunately, even on a new project, when running debug mode f5 (not release!), i'm not getting any output in the application output.

    When I make a normal run in debug mode (ctrl + R), the output is shown.

    My code in main.cpp:

    #include "mainwindow.h"
    
    #include <QApplication>
    #include <QLocale>
    #include <QTranslator>
    #include <QDebug>
    
    int main(int argc, char *argv[])
    {
        QApplication a(argc, argv);
        qDebug() << "hey";
        MainWindow w;
        w.show();
        return a.exec();
    }
    

    Projects > run settings:
    5a848087-3d26-4932-81be-e3495d81c13b-image.png

    Edit > preferences > kits:
    b5824eb2-7c7b-4980-93ec-82b6a59526f0-image.png

    I had the issue before but never got solved, although now I found some new things like ctrl+r does work but that's not running the debugger.

    My application output:

    09:02:06: Debugging C:\projects\Qt\build\Desktop_Qt_6_10_2_MSVC2022_64bit-Debug\debug\tool.exe "-qmljsdebugger=port:60111,block,services:DebugMessages,QmlDebugger,V8Debugger,QmlInspector,DebugTranslation" ...
    
    Exception at 0x7ff9e7ffa80a, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite
    
    Exception at 0x7ff9e7ffa80a, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite
    
    Exception at 0x7ff9e7ffa80a, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite
    

    This exception does not occur in ctrl+R mode, only in F5 mode.

    Using visual studio build tools 2022 I have installed;
    7fd8dcdf-aa81-496f-91d8-57468bf18bfa-image.png
    Also I installed Desktop development with C++

    Does anyone have a clue that can help me move forward?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MHMart_asc
      wrote last edited by
      #2

      Qt creator version: 18.0.2

      1 Reply Last reply
      0
      • aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote last edited by
        #3

        @MHMart_asc: Looks like QTCREATORBUG-33741.

        So for LLDB there is a bugfix in 19.0, but for cdb it seems there is currently no fix available.

        Regards

        Qt has to stay free or it will die.

        cristian-adamC 1 Reply Last reply
        0
        • JonBJ Online
          JonBJ Online
          JonB
          wrote last edited by
          #4

          @MHMart_asc , @aha_1980
          I am not a Windows/MSVC user. But if this (presently?) does not work for MSVC/cdb does installing and running DebugView allow you to see debug output?

          1 Reply Last reply
          0
          • J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote last edited by
            #5

            stupid question but, is your cmake configuration on debug as well? I would assume so, but double checking won't hurt


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            M 1 Reply Last reply
            0
            • J.HilkJ J.Hilk

              stupid question but, is your cmake configuration on debug as well? I would assume so, but double checking won't hurt

              M Offline
              M Offline
              MHMart_asc
              wrote last edited by
              #6

              @J.Hilk said in Qt creator no qDebug() output in debug mode - Qt 6.10.2:

              stupid question but, is your cmake configuration on debug as well? I would assume so, but double checking won't hurt

              Probably the solution will be even more stupid considering I am the one with the issue :)

              Can you tell me how to check that?

              @JonB said in Qt creator no qDebug() output in debug mode - Qt 6.10.2:

              @MHMart_asc , @aha_1980
              I am not a Windows/MSVC user. But if this (presently?) does not work for MSVC/cdb does installing and running DebugView allow you to see debug output?

              cb875738-9187-44db-a369-bd1cdf8836b3-image.png

              [19144] Error: Change all symbol paths attempts to access '""' failed: 0x7b - De syntaxis van de bestandsnaam, mapnaam of volumenaam is onjuist.
              [19144] 
              [19144] ************* Path validation summary **************
              [19144] Response                         Time (ms)     Location
              [19144] Error                                         
              [19144]  
              [19144] ""
              [19144] 
              [3228] Suspending
              
              JonBJ J.HilkJ 2 Replies Last reply
              0
              • M MHMart_asc

                @J.Hilk said in Qt creator no qDebug() output in debug mode - Qt 6.10.2:

                stupid question but, is your cmake configuration on debug as well? I would assume so, but double checking won't hurt

                Probably the solution will be even more stupid considering I am the one with the issue :)

                Can you tell me how to check that?

                @JonB said in Qt creator no qDebug() output in debug mode - Qt 6.10.2:

                @MHMart_asc , @aha_1980
                I am not a Windows/MSVC user. But if this (presently?) does not work for MSVC/cdb does installing and running DebugView allow you to see debug output?

                cb875738-9187-44db-a369-bd1cdf8836b3-image.png

                [19144] Error: Change all symbol paths attempts to access '""' failed: 0x7b - De syntaxis van de bestandsnaam, mapnaam of volumenaam is onjuist.
                [19144] 
                [19144] ************* Path validation summary **************
                [19144] Response                         Time (ms)     Location
                [19144] Error                                         
                [19144]  
                [19144] ""
                [19144] 
                [3228] Suspending
                
                JonBJ Online
                JonBJ Online
                JonB
                wrote last edited by JonB
                #7

                @MHMart_asc
                So your screenshot shows all output sent to debug on your system. I don't know whether the PIDs shown are for your Qt program or not, only you do. Whether this will work for them or not depends on how the qDebug() output is sent and whatever the nature of the reported "bug" is.

                If you really need qDebug() output and cannot wait while some bug gets fixed, install a qInstallMessageHandler() and redirect its output from there to whatever suits, e.g. for the DebugView it would be Windows OutputDebugString().

                1 Reply Last reply
                0
                • M MHMart_asc

                  @J.Hilk said in Qt creator no qDebug() output in debug mode - Qt 6.10.2:

                  stupid question but, is your cmake configuration on debug as well? I would assume so, but double checking won't hurt

                  Probably the solution will be even more stupid considering I am the one with the issue :)

                  Can you tell me how to check that?

                  @JonB said in Qt creator no qDebug() output in debug mode - Qt 6.10.2:

                  @MHMart_asc , @aha_1980
                  I am not a Windows/MSVC user. But if this (presently?) does not work for MSVC/cdb does installing and running DebugView allow you to see debug output?

                  cb875738-9187-44db-a369-bd1cdf8836b3-image.png

                  [19144] Error: Change all symbol paths attempts to access '""' failed: 0x7b - De syntaxis van de bestandsnaam, mapnaam of volumenaam is onjuist.
                  [19144] 
                  [19144] ************* Path validation summary **************
                  [19144] Response                         Time (ms)     Location
                  [19144] Error                                         
                  [19144]  
                  [19144] ""
                  [19144] 
                  [3228] Suspending
                  
                  J.HilkJ Offline
                  J.HilkJ Offline
                  J.Hilk
                  Moderators
                  wrote last edited by
                  #8

                  @MHMart_asc said in Qt creator no qDebug() output in debug mode - Qt 6.10.2:

                  Can you tell me how to check that?

                  go to your project tab and check the CMAKE_BUILD_TYPE variable

                  e7a65449-cac5-4d1f-a69a-f90a75c1c63c-image.png

                  initial config and current


                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  1 Reply Last reply
                  0
                  • aha_1980A aha_1980

                    @MHMart_asc: Looks like QTCREATORBUG-33741.

                    So for LLDB there is a bugfix in 19.0, but for cdb it seems there is currently no fix available.

                    Regards

                    cristian-adamC Offline
                    cristian-adamC Offline
                    cristian-adam
                    wrote last edited by
                    #9

                    @aha_1980 said in Qt creator no qDebug() output in debug mode - Qt 6.10.2:

                    @MHMart_asc: Looks like QTCREATORBUG-33741.

                    So for LLDB there is a bugfix in 19.0, but for cdb it seems there is currently no fix available.

                    At QTCREATORBUG-33741 we have:

                    cdb:

                    • when launching without terminal, the qDebug output is not shown in the "Application Output" pane

                    • when "Run in terminal" is enabled, the qDebug output is shown in the terminal

                    lldb:

                    • when launching without terminal, the qDebug output is not shown in the "Application Output" pane

                    • when "Run in terminal" is enabled, the qDebug output is not shown in the terminal, either

                    With Qt Creator 18.0.2 and cdb all that @MHMart_asc needs to do is set the checkbox Run in terminal for the project.

                    For Qt Creator 19 I've made sure that lldb would work when Run in terminal is set.

                    M 1 Reply Last reply
                    2
                    • cristian-adamC cristian-adam

                      @aha_1980 said in Qt creator no qDebug() output in debug mode - Qt 6.10.2:

                      @MHMart_asc: Looks like QTCREATORBUG-33741.

                      So for LLDB there is a bugfix in 19.0, but for cdb it seems there is currently no fix available.

                      At QTCREATORBUG-33741 we have:

                      cdb:

                      • when launching without terminal, the qDebug output is not shown in the "Application Output" pane

                      • when "Run in terminal" is enabled, the qDebug output is shown in the terminal

                      lldb:

                      • when launching without terminal, the qDebug output is not shown in the "Application Output" pane

                      • when "Run in terminal" is enabled, the qDebug output is not shown in the terminal, either

                      With Qt Creator 18.0.2 and cdb all that @MHMart_asc needs to do is set the checkbox Run in terminal for the project.

                      For Qt Creator 19 I've made sure that lldb would work when Run in terminal is set.

                      M Offline
                      M Offline
                      MHMart_asc
                      wrote last edited by
                      #10

                      @cristian-adam said in Qt creator no qDebug() output in debug mode - Qt 6.10.2:

                      With Qt Creator 18.0.2 and cdb all that @MHMart_asc needs to do is set the checkbox Run in terminal for the project.

                      That causes the following error:
                      d092a186-0d6f-4ce8-a640-7babc2181a48-image.png

                      cristian-adamC 1 Reply Last reply
                      0
                      • M MHMart_asc

                        @cristian-adam said in Qt creator no qDebug() output in debug mode - Qt 6.10.2:

                        With Qt Creator 18.0.2 and cdb all that @MHMart_asc needs to do is set the checkbox Run in terminal for the project.

                        That causes the following error:
                        d092a186-0d6f-4ce8-a640-7babc2181a48-image.png

                        cristian-adamC Offline
                        cristian-adamC Offline
                        cristian-adam
                        wrote last edited by
                        #11

                        @MHMart_asc You could try disabling the QML Debugger.

                        M 1 Reply Last reply
                        0
                        • cristian-adamC cristian-adam

                          @MHMart_asc You could try disabling the QML Debugger.

                          M Offline
                          M Offline
                          MHMart_asc
                          wrote last edited by
                          #12

                          @cristian-adam I do now get an output in the terminal, So at least that's that. thank you.

                          Exception at 0x7ff9e7ffa80a, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite
                          
                          Exception at 0x7ff9e7ffa80a, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite
                          
                          Exception at 0x7ff9e7ffa80a, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite
                          
                          Exception at 0x7ff9e7ffa80a, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite
                          

                          Still I get these exceptions in the application output. Is that relevant?

                          JonBJ 1 Reply Last reply
                          1
                          • M MHMart_asc

                            @cristian-adam I do now get an output in the terminal, So at least that's that. thank you.

                            Exception at 0x7ff9e7ffa80a, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite
                            
                            Exception at 0x7ff9e7ffa80a, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite
                            
                            Exception at 0x7ff9e7ffa80a, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite
                            
                            Exception at 0x7ff9e7ffa80a, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite
                            

                            Still I get these exceptions in the application output. Is that relevant?

                            JonBJ Online
                            JonBJ Online
                            JonB
                            wrote last edited by
                            #13

                            @MHMart_asc No, always ignore "first chance exceptions" when debugging under Windows.

                            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