QT builds the project in release mode and uses breakpoint debugging

pro file

# release断点测试
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO

Rebuild the project

Insert picture description here

Rerun to breakpoint debugging like debug

也是可以断点调试 ,但是有些变量路过就看不到值了,需要注意,并不是变量没有被赋值,而是特性。

Guess you like

Origin blog.csdn.net/qq_45646951/article/details/111831142