winIDEA SDK
Loading...
Searching...
No Matches
test_set_bp_source.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_set_bp_source():
conn_mgr = ic.ConnectionMgr()
conn_mgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
bp_ctrl = ic.CBreakpointController(conn_mgr)
bp_handle = bp_ctrl.set_BP_source(15, "src/main.cpp")
print(f"Breakpoint set at location: {bp_handle.location()}.")
if __name__ == "__main__":
test_set_bp_source()