
Structs returned to starlark scripts by API calls were immutable, this made amend_breakpoint nearly impossible to use since its argument must be a api.Breakpoint struct which the caller has received from get_breakpoint and modified.
7 lines
166 B
Plaintext
7 lines
166 B
Plaintext
bp = get_breakpoint(0, "afuncbreak").Breakpoint
|
|
bp.Stacktrace = 2
|
|
bp.HitCond = "== 2"
|
|
amend_breakpoint(bp)
|
|
bp2 = get_breakpoint(0, "afuncbreak").Breakpoint
|
|
print(bp)
|