hello lauterbach team,
I am trying use pyrcl to set breakpoint, now I can set breakpoint by address/function via Break.Set command, but I am not able to set breakpoints with code file and line numbers, I want know how to implement it?
def setBreakpointAtFunctionOffset(self, function: str, offset: int):
cmd = rf'Break.Set {function}\{offset}'
self.dbg.cmd(cmd)
def setBreakpointAtAddress(self, address: int):
cmd = f'Break.Set {hex(address).upper()}'
self.dbg.cmd(cmd)
def setBreakpointAtFunction(self, function: str):
cmd = f'Break.Set {function}'
self.dbg.cmd(cmd)
How to set a breakpoint at a specific line in a specific file via pyrcl - Community / Test Automation - Lauterbach Support
How to set a breakpoint at a specific line in a specific file via pyrcl Awaiting Agent
Comment (1)
Wiem Wala Benayed
Add a comment
ID-0
This is possible using :
def setBreakpointAtFileLine(self,file: str, line:int):
cmd = f'Break.Set \{file}\{line}'
self.dbg.cmd(cmd)