Points: breakpoint, watch, Point, clear

Breakpoints and watchpoints as Point objects with state and removal.

since 0.1.0-rc.1since 0.3.0

Methods

EntrySignatureAvailable sinceAPI 3
breakpointbreakpoint(location, temporary=False, *, condition=None, ignore_count=0) -> Point0.1.0-rc.1unchanged
watchwatch(path) -> Point0.3.0unchanged
PointPoint: active, hit_count, condition; enable(), disable(), remove(), with0.3.0unchanged
clearclear() -> None0.1.0-rc.1unchanged

API 3 changes (0.5.0)

Unchanged; a point condition is evaluated without function calls.

Recommended

watch and breakpoint inside a with block or with an explicit remove().

with t.watch("app_state.ticks"):
    t.resume()

point = t.breakpoint("board_led_toggle")
t.reach("app_loop")
t.check("point is active", point.active, True)
point.remove()

Avoid

gdb.execute("break …") bypasses Target: the point is neither tracked nor removed. clear() also removes fault guards — only on purpose.

import gdb
gdb.execute("break board_led_toggle")   # not tracked, not cleaned up
t.clear()                               # also removes fault guards

The fragments show refused or discouraged patterns, not a working recipe.

Fragments for a scenario body; firmware symbols are illustrative.

← InjectionAll groupsJournal and SKIP →