Results 1 to 7 of 7

Thread: How to step into Thirdparty library source code while debugging?

  1. #1
    Join Date
    Apr 2011
    Location
    India
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question How to step into Thirdparty library source code while debugging?

    Hi all,
    I am using a third party library in my Qt App. This third party library was built by VS2012(both debug & release). My Qt app will link it to dynamically. When i am debugging application from Qt creator, i cant step-into the external library function call's source code( i have the source code of that library ). I understood that gdb unable to locate source code. But how to make it happen in windows platform. I have mentioned in .pro file to link my app with library(libs path). Application is able to link with library (in both release and debug modes), but how to step into lib source code while debugging from Qtcreator?
    My Environment Details:
    OS: Windows7, QT SDK : 1.2.1 (Qt libs - v4.8.1), Qt Ctreator - v2.4.1.

    Thanks..

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to step into Thirdparty library source code while debugging?

    Do you have debugging symbols from that third party library in a format understandable by your debugger?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2011
    Location
    India
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Re: How to step into Thirdparty library source code while debugging?

    Yes. I have PDB (Program Debug Database) file for the library. It was generated while building the library source code in VS2012. But i don't know how to make use of it to view the source code of library while debugging. My Qt creator is using default "gdb" for debugging purpose which was shipped with QTSDK.
    I would like to mention one more point. I built the same library(its a plain c++ based one) in Ubuntu and able to generate libraries (.so) files in both release and debug modes. But some how i solved this problem in Linux environment by using an option in Qt creator like " Add library " -> External library.. In this approach gdb is able to locate source of the library so that i have successfully entered the source code. Unfortunately this approach is not working in Windows.( I have added lib by using same option in Qt-creator in windows).
    Thank you.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to step into Thirdparty library source code while debugging?

    Quote Originally Posted by vangaurd View Post
    Yes. I have PDB (Program Debug Database) file for the library. It was generated while building the library source code in VS2012.
    That's for MSVC, not for MinGW. I doubt GDB is able to read pdb files.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Apr 2011
    Location
    India
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Re: How to step into Thirdparty library source code while debugging?

    Yeah. May be PDB files are only for MS debuggers only. So is there any way i can use MSVS compiler and debuggers in my QtCreator instead of default GCC and GDB?.
    FYI:I have installed all native tools (windows SDK, MSVS) including debugger tools (CDB) in my windows.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to step into Thirdparty library source code while debugging?

    Yes, you just need to download Qt libraries for MSVC. Or you can rebuild your C++ library with MinGW and use that.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Apr 2011
    Location
    India
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to step into Thirdparty library source code while debugging?

    Thank you. I will try these possibilities.

Similar Threads

  1. Replies: 11
    Last Post: 26th June 2012, 11:51
  2. How do I add a qt source code library to my project ?
    By Paulo Fernando Pimenta in forum Newbie
    Replies: 5
    Last Post: 14th January 2011, 22:33
  3. Qt Creator Debugging step by step through else rich code does not work
    By Terjoqu in forum Qt Tools
    Replies: 1
    Last Post: 11th March 2010, 22:44
  4. How to step inside(debug) webkit code?
    By nish in forum Qt Programming
    Replies: 5
    Last Post: 30th December 2009, 13:23
  5. Step by Step MySQL Plugin... what's next step?
    By chaosgeorge in forum Qt Programming
    Replies: 20
    Last Post: 5th November 2006, 16:32

Tags for this Thread

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.