'QtCreator debugger - Enabled, pending, Breakpoint inserted
In Qt5 C++ project, looks like debugger cannot stop on line with a qmake defined variable like
project.pro
TARGET_ = '\\"$$TARGET\\"'
DEFINES += PROJECT=\"$${TARGET_}\"
main.cpp
qDebug() << "It stops here";
qDebug() << PROJECT; // It does not stop here
qDebug() << "And stops here";
Hover the mouse over the breakpoint, while debugging, and I see:
- Where it stops
Enabled, Breakpoint inserted
- Where it does not stop
Enabled, pending, Breakpoint inserted
What is going on?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
