Details
Description
- Create a new Qt GUI Application project.
- In main.cpp, replace the last line:
return a.exec();
by:
int r = a.exec(); return r;
- Run the project in gdb debugger.
- While the project is running, set a breakpoint in the line containing the return statement.
Execution of the the project will stop.
The execution of a debugged program should not stop until a breakpoint is actually being hit.