winIDEA SDK
Loading...
Searching...
No Matches
test_set_bp_action.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 os
import isystem.connect as ic
winidea_id = ''
def test_set_bp_action():
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")
script_dir = os.path.normpath(os.path.dirname(__file__))
bp_action_script = os.path.join(script_dir, "set_bp_symbol_action.py")
param = "process_strings"
bp_ctrl.set_BP_action(bp_handle, bp_action_script, param, True)
print(f"Breakpoint at function 'init_globals' is set to run script {bp_action_script} with parameter '{param}'.")
if __name__ == "__main__":
test_set_bp_action()