Cosa icon indicating copy to clipboard operation
Cosa copied to clipboard

Debugger: Dynamic trace/breakpoints

Open mikaelpatel opened this issue 8 years ago • 1 comments

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.

mikaelpatel avatar Oct 30 '15 14:10 mikaelpatel

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).

mikaelpatel avatar Nov 25 '15 23:11 mikaelpatel