0

As a sub-question to this, I want to know, since Qt5 is distributed with full source code, is it possible to set up debugger break-points inside Qt itself?

Is there a symbol file shipped with Qt5 for the binary build? Do I have to build my own Qt to do this?

What is the fastest way to have breakpoints inside Qt5 working with QtCreator on Ubuntu?

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Mr. Developerdude
  • 9,118
  • 10
  • 57
  • 95
  • I have done this with Visual Studio. However I build Qt from source code on all of my development boxes. I am not sure if the ubuntu development files for Qt will include the debugger symbols. – drescherjm Dec 04 '17 at 01:00
  • Qt5 does include the debugger symbols (at least on windows by default, the debugg .dll and the .pdb. And I´ve also done it in VS, in Ubuntu should be even easier. – Petar Petrov Dec 04 '17 at 08:34
  • Ok so how do i set it up? And one can ask why isn't it set up by default. – Mr. Developerdude Dec 04 '17 at 09:28
  • Does this answer your question? [Setup of Qt Creator to debug into Qt classes](https://stackoverflow.com/questions/21469310/setup-of-qt-creator-to-debug-into-qt-classes) – Ashark Aug 24 '23 at 20:07

1 Answers1

1

You need to configure and build qt yourself with debug symbols. (-debug)

Then in QtCreator you can go to Options > Debugger > General and "Add the Qt-Sources".

Louis Kröger
  • 344
  • 3
  • 10