steffen Messages: 38 Registered: May 2007 Location: Denmark
This tip works when debugging with TheIde using GDB on Ubuntu.
When I'm debugging Upp programs, I often find myself wanting to add a new breakpoint to see some state somewhere in my code.
Until now I have always stopped program, set a breakpoint and restart program. I always missed the possibility to add breakpoints on the fly during execution, I can add them with F9, but GDB wont recognize it until it has stopped execution.
Also sometimes I miss a pause button to see whatever loop/deadlock causes my program to hang.
From a terminal simply run:
kill -INT <process id>
Where the process id is the program being debugged.
Could this be implemented in the IDE as a pause button alongside the other debugging controls?
Or run automaticly if one inserts a breakpoint into a running program, like: <Pause><Add breakpoint><Continue>?