Separate debugger window (Debug menu) driving real gdb over the MI protocol: breakpoints (file:line / function, enable/disable/list, persisted), step over/into/out, continue/run/stop/kill/restart, locals + watch expressions + stack frames, target stdout/stderr pane. Settings button and Debug > Debugger sub-menu (gdb path, break on main, stop on entry, pretty-print) persisted to ~/.config/fdesigner/debugger.conf. Tests: tests/debugger_tests.sh — 31 console + 5 GTK headless cases plus a GUI smoke test, all passing.
13 lines
278 B
C++
13 lines
278 B
C++
// Debugger test target: never exits on its own (kill/restart tests).
|
|
// Compile with: g++ -g -O0 -o spin spin.cpp
|
|
#include <cstdio>
|
|
int main() {
|
|
volatile long n = 0;
|
|
std::printf("SPINNING\n");
|
|
std::fflush(stdout);
|
|
while (1) {
|
|
n++;
|
|
}
|
|
return 0;
|
|
}
|