Results 1 to 3 of 3

Thread: properly debugging w/ cdb, Qt Creator and Visual C++ 2010 Express?

  1. #1
    Join Date
    Jun 2008
    Posts
    49
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question properly debugging w/ cdb, Qt Creator and Visual C++ 2010 Express?

    Hi,

    I'm trying to get debugging working properly, using Qt Creator, MS Visual C++ 2010 Express, and the MS Debugging tools. I can properly compile & link executables from within Qt Creator, using the C++ compiler that comes with the MS Visual C++ 2010 Express installation.

    But, as noted here as well: http://doc.qt.nokia.com/qtcreator-sn...ver-in-windows , Visual C++ Express does not come with a debugger. As noted on this page as well, one can download & install the Windows SDK debugger, and supposedly use it from within Qt.

    So, this is what I have done, installed the Debugger from the link provided in the previous page: http://msdn.microsoft.com/en-us/wind...dware/gg463012

    After that, I cloned the toolchain in Qt Creator, and specified the debugger executable for it in the toolchain configuration page, to be: C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\Mdbg.exe

    so far so good. when I build in debug mode, then press on the 'Start Debugging' button, Qt Creator seems to recognize the debugger. it asks me to set up the symbol server cache, and then it seems to start the application.

    But, unfortunately the debugger fails, with the following message:

    Qt Code:
    1. Launching C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\Mdbg.exe -aqtcreatorcdbext.dll -lines -G -c .idle_cmd !qtcreatorcdbext.idle -y symsrv*symsrv.dll*C:\Users\akos\AppData\Local\Temp\symbolcache*http://msdl.microsoft.com/download/symbols C:\test\test.exe
    2. using C:\QtSDK\QtCreator\lib\qtcreatorcdbext32\qtcreatorcdbext.dll of 1/22/2012 4:07:03 PM.
    3. C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\Mdbg.exe running as 964
    4. MDbg (Managed debugger) v3.5.30729.1 (SP.030729-0100) started.
    5. Copyright (C) Microsoft Corporation. All rights reserved.
    6. For information about commands type "help";
    7. to exit program type "quit".
    8. run -aqtcreatorcdbext.dll -lines -G -c ".idle_cmd !qtcreatorcdbext.idle" -y symsrv*symsrv.dll*C:\Users\akos\AppData\Local\Temp\symbolcache*http://msdl.microsoft.com/download/symbols C:\test\test.exe
    9. Could not detect debuggee version -- using latest debugger API.
    10. Error: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
    To copy to clipboard, switch view to plain text mode 

    and then the whole process 'hangs'.

    am I doing something wrong here? how does one set this up properly?


    Akos

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: properly debugging w/ cdb, Qt Creator and Visual C++ 2010 Express?

    visual studio express does come with a debugger - you can compile and debug using only studio express.

    Having said that, I'm not sure how to fix your issue. I followed instructions and it worked, but I d/l symbol cache before dubugging.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Jun 2008
    Posts
    49
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: properly debugging w/ cdb, Qt Creator and Visual C++ 2010 Express?

    Quote Originally Posted by amleto View Post
    visual studio express does come with a debugger - you can compile and debug using only studio express.

    Having said that, I'm not sure how to fix your issue. I followed instructions and it worked, but I d/l symbol cache before dubugging.
    I persume you mean debugging from within Visual Studio. I'm looking to debug from within Qt Creator.

Similar Threads

  1. Replies: 2
    Last Post: 23rd June 2011, 01:39
  2. QT with Visual C++ 2008 Express Edition
    By Gsxr1000 in forum Installation and Deployment
    Replies: 4
    Last Post: 28th May 2010, 13:06
  3. Plan for Visual Studio 2010 (MSVC 2010)?
    By Vinzz in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2010, 17:42
  4. Visual Studio 2005 Express
    By Muzz in forum Installation and Deployment
    Replies: 22
    Last Post: 6th November 2008, 06:21
  5. Qt 4.2.2 and Visual studio express
    By Morea in forum Installation and Deployment
    Replies: 4
    Last Post: 30th May 2007, 06:45

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.