winIDEA SDK
Loading...
Searching...
No Matches
test_clear_bp_condition.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
#
# (c) TASKING Germany GmbH, 2023
import isystem.connect as ic
winidea_id = ''
def test_clear_bp_condition():
conn_mgr = ic.ConnectionMgr()
conn_mgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
bp_ctrl = ic.CBreakpointController(conn_mgr)
bp_handle = bp_ctrl.set_BP_symbol("init_globals")
bp_condition = "main_loop_counter > 10"
bp_ctrl.set_BP_condition(bp_handle, 1, bp_condition)
print(f"Condition '{bp_condition}' is set for breakpoint at function 'init_globals'.")
bp_ctrl.clear_BP_condition(bp_handle)
print("Breakpoint condition cleared.")
if __name__ == "__main__":
test_clear_bp_condition()