c++qtdebuggingqt5breakpoints

How to set a breakpoint inside Qt source code?


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 Qt Creator on Ubuntu?


Solution

  • 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".