'Qt creator debug mode can not run on Ubuntu20 [duplicate]

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



Solution 1:[1]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mugiseyebrows