winIDEA SDK
Loading...
Searching...
No Matches
set_bp_symbol_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
"""
This script is an addition to example test_set_bp_action.py.
It sets a breakpoint at a symbol determined by script parameter.
"""
import argparse
import isystem.connect as ic
winidea_id = ''
def set_bp_symbol(symbol: str):
conn_mgr = ic.ConnectionMgr()
conn_mgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
bp_ctrl = ic.CBreakpointController(conn_mgr)
bp_ctrl.set_BP_symbol(symbol)
print(f"Breakpoint set at symbol '{symbol}'.")
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("symbol", type=str, help="Symbol at which the breakpoint will be set.")
args = parser.parse_args()
set_bp_symbol(args.symbol)