winIDEA SDK
Loading...
Searching...
No Matches
test_get_bps.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_get_bps():
conn_mgr = ic.ConnectionMgr()
conn_mgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
bp_ctrl = ic.CBreakpointController(conn_mgr)
bp_ctrl.set_BP_symbol("main")
bp_ctrl.set_BP_symbol("target_init")
bp_ctrl.set_BP_symbol("init_globals")
all_bps = bp_ctrl.get_BPs()
print(f"Breakpoints are set at functions:")
for bp in all_bps:
print(f"'{bp.location()}'")
if __name__ == "__main__":
test_get_bps()