|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Breakpoint structure for in-memory storage. More...
#include <wslua_debugger.h>
Public Attributes | |
| char * | file_path |
| int64_t | line |
| bool | active |
| char * | condition |
| int64_t | hit_count_target |
| int64_t | hit_count |
| wslua_hit_count_mode_t | hit_count_mode |
| bool | condition_error |
| char * | condition_error_msg |
| char * | log_message |
| bool | log_also_pause |
| int64_t | last_fired_us |
Breakpoint structure for in-memory storage.
Breakpoints are persisted via the Qt UI's JSON settings file, not via Wireshark's UAT system.
condition / hit_count_target / log_message are optional: NULL/empty/zero means "not set". When set, the line hook applies the gates in order: hit-count, condition, then logpoint vs pause. hit_count is a runtime counter and is not persisted. last_fired_us is a runtime monotonic timestamp (microseconds, g_get_monotonic_time scale) used to compute the {delta} logpoint tag; 0 means the breakpoint has not fired yet. Not persisted.
| bool _wslua_breakpoint_t::active |
Whether the breakpoint is active
| char* _wslua_breakpoint_t::condition |
Optional Lua expression; pause when truthy
| bool _wslua_breakpoint_t::condition_error |
Last condition eval errored (sticky)
| char* _wslua_breakpoint_t::condition_error_msg |
Last condition error text; NULL = none. Owned by the breakpoint, freed on edit / reset / remove. Not persisted.
| char* _wslua_breakpoint_t::file_path |
File path of the script
| int64_t _wslua_breakpoint_t::hit_count |
Runtime hit counter (not persisted)
| wslua_hit_count_mode_t _wslua_breakpoint_t::hit_count_mode |
How the gate compares hit_count against hit_count_target. Ignored when hit_count_target == 0.
| int64_t _wslua_breakpoint_t::hit_count_target |
Optional hit count threshold; 0 = none
| int64_t _wslua_breakpoint_t::last_fired_us |
Monotonic ts of previous fire; 0 = never
| int64_t _wslua_breakpoint_t::line |
Line number
| bool _wslua_breakpoint_t::log_also_pause |
Logpoint and pause: when log_message is set, true means the breakpoint formats and emits the message AND pauses. Default false (matches the historical "logpoints never pause" behavior).
| char* _wslua_breakpoint_t::log_message |
Optional logpoint template with {expr}