Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Just started trying an example in Qt but get "No debugger set up"
Forum Updated to NodeBB v4.3 + New Features

Just started trying an example in Qt but get "No debugger set up"

Scheduled Pinned Locked Moved Solved General and Desktop
23 Posts 2 Posters 6.9k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 25 Jun 2016, 20:44 last edited by
    #2

    Hi,

    You likely have installed Qt for Visual Studio. This means that you have to also install Microsoft's debugging tools. You can get them here.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jdent
      wrote on 25 Jun 2016, 21:11 last edited by
      #3

      No I have the CDB debugger installed in my computer.... it's available in
      C:\Program Files (x86)\Windows Kits\10\Debuggers\x64>cdb.exe
      and I can see it in Qt Creator->Tools->Options->Debuggers as an auto-detected debugger...

      From the Visual Studio plug-in I am able to debug it -- not from Qt Creator

      Thanks
      Juan

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jdent
        wrote on 25 Jun 2016, 21:27 last edited by
        #4

        sorry not at Qt Creator->Tools->Options->Debuggers

        where I can see the debugger is at Qt Creator->Tools->Options->Build&Run->Debuggers

        Actually in Qt Creator->Tools->Options->Debuggers in the CDB and CDB Paths they are empty!!

        Also, when I move my cursor on top of the selected kit called Desktop Qt 5.6.0 MSVC2015 64bit, a popup window displays several data including:

        Compiler: Microsoft Visual C++ Compiler 14.0 (amd64)
        Debugger: No debugger

        IS this more clear?

        Juan

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 25 Jun 2016, 21:44 last edited by
          #5

          Then check the Qt Kit you are using and verify the debugger option.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jdent
            wrote on 25 Jun 2016, 22:52 last edited by
            #6

            But the Qt Creator->Tools->Options->Debuggers is empty! How can I "verify the debugger option"? What do you mean by that?

            Thanks,
            Juan

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jdent
              wrote on 26 Jun 2016, 00:52 last edited by
              #7

              Ok, I got it! Sorry for that...

              My debugger is now set... BUT when I execute the EXE under the debugger I get:

              eERROR: Process crashed
              dCDB PROCESS FINISHED, status 1, exit code -1073741515
              dNOTE: ENGINE ILL ******
              dState changed from EngineSetupRequested(1) to EngineShutdownRequested(19) [master]
              dQUEUE: SHUTDOWN ENGINE
              dCALL: SHUTDOWN ENGINE
              dNOTE: ENGINE SHUTDOWN OK
              dState changed from EngineShutdownRequested(19) to EngineShutdownOk(21) [master]
              dState changed from EngineShutdownOk(21) to DebuggerFinished(22) [master]
              dQUEUE: FINISH DEBUGGER
              dNOTE: FINISH DEBUGGER
              dHANDLE RUNCONTROL FINISHED
              sDebugger finished.

              When I run it from Qt Creator but without debugging it also crashes:

              Starting C:\Qt\Examples\Qt-5.6\qtbase\sql\build-sqlbrowser-Desktop_Qt_5_6_0_MSVC2015_64bit-Debug\debug\sqlbrowser.exe...
              The program has unexpectedly finished.
              C:\Qt\Examples\Qt-5.6\qtbase\sql\build-sqlbrowser-Desktop_Qt_5_6_0_MSVC2015_64bit-Debug\debug\sqlbrowser.exe crashed.

              Last issue: although I have cmake in my system, I can't get that to be configured for neither of the projects I have tried. These projects are from the SQL examples that come with Qt 5.6

              Thank you very much for your help!!!

              Juan

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 26 Jun 2016, 20:30 last edited by
                #8

                Is this an example or your own application ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jdent
                  wrote on 27 Jun 2016, 18:35 last edited by
                  #9

                  This is one of the examples that come with Qt 5.6 -- the one called SqlBrowser

                  The strange thing is that I can compile and run it/debug it perfectly fine from Qt Addin in Visual Studio 2015 Update 2

                  Something entirely: although I have cmake in my system, I can't get that to be configured for neither of the projects I have tried. These projects are from the SQL examples that come with Qt 5.6

                  Thanks for your help!!
                  Juan

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 27 Jun 2016, 20:25 last edited by
                    #10

                    Just to be sure I understand you correctly, they fail to run with Qt Creator but not with Visual Studio ?

                    cmake ? All the examples are using qmake.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      jdent
                      wrote on 27 Jun 2016, 20:47 last edited by
                      #11

                      Yes SqlBrowser runs perfectly from Visual Studio but not in Qt Creator!!

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 27 Jun 2016, 21:34 last edited by
                        #12

                        That's pretty strange situation I haven't hit yet…

                        Since you're on 5.6.0, can you update to 5.6.1 or 5.7.0 to see if you are still experiencing this ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          jdent
                          wrote on 27 Jun 2016, 21:56 last edited by
                          #13

                          I would have to download everything and compile because I use open source license

                          I think having the project open both in Visual Studio AND Qt Creator might have corrupted something don't you think??

                          Regards,
                          Juan

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 27 Jun 2016, 22:26 last edited by
                            #14

                            What do you mean download everything and compile ? If you used the online installer you can simply update from the MaintenanceTool and you should be good to go.

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • J Offline
                              J Offline
                              jdent
                              wrote on 27 Jun 2016, 23:42 last edited by
                              #15

                              Went to Qt origin and downloaded the online installer (called qt-unified-windows-x86-2.0.3-online.exe) and started executing it... when I got where I need to give the installation root, I tried C:\Qt but it says "The folder you selected already exists and contains an installation.. Choose a different target.."

                              So I was going to choose C:\QtNext ... however:

                              Was this the "MaintenanceTool" you suggested to use? It doesn't feel like that - it feels like a whole new installer...

                              ??
                              Juan

                              1 Reply Last reply
                              0
                              • J Offline
                                J Offline
                                jdent
                                wrote on 27 Jun 2016, 23:43 last edited by
                                #16

                                Sorry - I just found the MaintenanceTool -- ----- ignore my last posting...

                                Juan

                                1 Reply Last reply
                                0
                                • J Offline
                                  J Offline
                                  jdent
                                  wrote on 28 Jun 2016, 00:12 last edited by
                                  #17

                                  I am updating to 5.6.1 and will let you know if this cures the problem

                                  Strangely there wasn't an option in the MaintenanceTool to update to 5.7???

                                  Regards,
                                  Juan

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 28 Jun 2016, 07:52 last edited by
                                    #18

                                    Strange, in that case you can always try to grab the online installer again and check if it's available.

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    0
                                    • J Offline
                                      J Offline
                                      jdent
                                      wrote on 28 Jun 2016, 15:04 last edited by
                                      #19

                                      Ok, it now compiles and runs and can be debugged!

                                      Just one thing: when I choose to use MySQL in this example, it does not find libmysql.dll...

                                      What is the preferred way of telling the EXE where its DLLs are?

                                      Regards,
                                      Juan

                                      1 Reply Last reply
                                      0
                                      • J Offline
                                        J Offline
                                        jdent
                                        wrote on 28 Jun 2016, 15:54 last edited by
                                        #20

                                        Got it - I modified the PATH environment variable in the Kits tab of the Build & Run section of Tools->Options to include the directory containing libmysql.dll.

                                        Is this the PREFERRED OFICIAL WAY TO MAKE DLLs AVAILABLE AT RUNTIME?

                                        What if the EXE is run outside the Qt Creator environment?

                                        Is there a way to copy dependent DLLs to the same directory that contains the EXE? Any such tool for instance? Maybe the tool uses Dumpbin to examine the EXE dependencies? Does this exist? Do you think this is a wise way to go?

                                        Regards,
                                        Juan

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on 28 Jun 2016, 16:04 last edited by
                                          #21

                                          From a Qt Creator perspective, it's one way to do it. You can also modify the the environment in the Run part of the Project panel.

                                          If the exe is run outside Qt Creator you have to take the same steps as you would when deploying on another computer. That part has been greatly simplified since windeployqt has been created.

                                          If some things aren't found, you'll have to copy them manually. In the case of MySQL, simply copy the .dll in the same folder as the application.

                                          On a side note, please don't use so much caps, in written language it's considered shouting and rude.

                                          Interested in AI ? www.idiap.ch
                                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                          1 Reply Last reply
                                          0

                                          11/23

                                          27 Jun 2016, 20:47

                                          • Login

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