Qt World Summit: Submit your Presentation

Linux debugging, is it possible to view the data for an object that you have a pointer to in the debugger?

  • I have a Visual Studio project I ported over to linuxMint15KDE using QtCreator2.8 gcc, it compiles and runs, but while trying to debug a rendering error I have pointers to objects in my code but only the value of the pointer is shown, how am I supposed to debug this application without seeing what the data in my objects are that were created with new? Is this possible some how? In visual studio its all shown by default.

  • Moderators

    For me, the content of pointers is shown too. Are you sure you are running GDB on a debug build of your project? You need to switch Qt Creator build configuration to debug and then run the debugger (just to be on the safe side, you can also clean and rebuild the whole project).

Log in to reply