|
|
|
|
|
by feelamee
501 days ago
|
|
For example for debugging gui apps. Let's say we have function `on_event(event_type)` and you want to examine execution if `event_type == mouse_up`. In reality conditional breakpoint is the same as simple, but simple require support from code: ```
void on_event(event_type type)
{
if (type == mouse_up)
{
// set breakpoint here
}
}
``` Also useful to break depending on call stack[0] [0] https://sourceware.org/gdb/current/onlinedocs/gdb.html/Conve... |
|