Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] Debugger Crashes on Start-Up on a Fresh Install (Windows 7 64-bit)
QtWS25 Last Chance

[SOLVED] Debugger Crashes on Start-Up on a Fresh Install (Windows 7 64-bit)

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 4 Posters 5.1k 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.
  • B Offline
    B Offline
    bubbleking2
    wrote on last edited by
    #1

    Hello,
    I am very new to Qt and installed Qt creator on two 64-bit Windows 7 machines today to get familiar with the environment. Upon building a simple "Hello World!" project I am greeted with the error message "During startup program exited with code 0x0." My application builds and executes in a command window in the background but the debugger fails to catch a breakpoint on the first line of my "main()" function (cout << "Hello World!" << endl;). I am using the MinGWW installation which came with Qt creator but it seems that, despite my best efforts, the program will not debug! Let me know what I am doing wrong to correct this problem. I really want to get this working!

    Also, I apologize for not providing a dump of any sort of data. If that would be helpful in determining the cause of this problem let me know where I can obtain the files and I will gladly provide them.

    [SOLVED] - For MinGW

    1. Open your project.
    2. Hit Ctrl+F5 to switch to Projects mode or click the relevant icon.
    3. Click the "Targets" button near the top left of the screen.
    4. Click the "Run" button near the top center of the screen within the "Targets" tab.
    5. Uncheck "Run in terminal"

    This allowed me to debug my MinGW project. I still can't debug my MSVC project but I haven't really looked into that error.
    When I click debug a message box appears saying,
    "The preferred debugger engine for debugging binaries of type 'x86-windows-msvc2010-pe-32bit' is not avaliable.
    The debugger engine 'Gdb engine' will be used as a fallback.
    Details: There is no CDB binary available for binaries in format 'x86-windows-msvc2012-pe-32bit'".
    On the computer I'm using to test this on I have not yet installed CDB so as of now I expect this error. I will install CDB from the Windows 8 SDK (the old version is no longer easy to obtain) and post a reply if I am able to debug MSVC projects.

    [SOLVED] - For MSVC

    1. Install "Debugging Tools" from the Windows 8 SDK located at http://msdn.microsoft.com/en-us/windows/desktop/hh852363.aspx
    2. In Qt Creator click Tools
    3. Click "Options..." from the drop-down menu.
    4. Click "Build & Run" on the side-bar.
    5. Click the "Tool Chains" tab.
    6. Select all of the items in the list which declare MSVC as their type.
    7. Click the "Clone" button.
      (Repeat steps 6 and 7 until each item is cloned.)
    8. For each of your newly cloned items set the the path to the Windows Console Debugger executable to "C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\cdb.exe" or wherever you installed the Windows Console Debugger.
    9. Click the "Apply" button.
    10. Click "Debugger on the side-bar.
    11. Click the "CDB" tab.
    12. Check "Use CDB console".
    13. Next to the "Symbol paths:" textbox click the down arrow on the "Insert..." button.
    14. Click "Symbol Server..." from the drop-down menu.
    15. Click the "OK" button.
    16. Click the "Apply" button.
    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi bubbleking2, welcome to Qt!

      Have a look at http://qt-project.org/forums/viewthread/15293 -- others have had the same problem, and seem to have solved it. See if it works for you.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bubbleking2
        wrote on last edited by
        #3

        You are a godsend!
        Unchecking "Run in Terminal" solved everything. Thank you very much!

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bubbleking2
          wrote on last edited by
          #4

          If anyone is interested I have determined the cause of this bug for MinGW. I created a relevant topic at http://qt-project.org/forums/viewthread/19385/

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            You're welcome; glad you solved it. :) Thank you also for writing up clear and detailed instructions for others' benefit!

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Peter Gomez
              Banned
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              -1
              • J Offline
                J Offline
                Jenny05
                Banned
                wrote on last edited by
                #7
                This post is deleted!
                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