Cosa
Cosa copied to clipboard
Debugger: Dynamic trace/breakpoints
Allow trace/breakpoints that can be turned on/off. This can be done with conditional trace/breakpoints but there is no easy why to control a condition.
Dynamic trace/breakpoints will require two new commands; 1) list available trace/breakpoints, 2) turn trace/breakpoint on/off.
This can be done with the OBSERVE_IF() and BREAK_IF() and a bool variable. What is missing in the debugger is a command to write to memory (e.g. set/clear bool variable).
DEBUG_COND(var) to declare the bool variable and commands to enable/disable. These could be Debug::Variable in the global scope (no function name reference).