Search code examples
ubuntuqt5qt-creator

Qt creator debug mode can not run on Ubuntu20


enter image description here When I try to debug my application I observed this dialog and debug can not reach breakpoint


Solution

  • You need to build your application in debug mode. For that you need to set CMAKE_BUILD_TYPE cmake variable to Debug, see creator build settings. This adds -g flag to gcc, which instructs it to add debug information to the binary.