Skip to main content

How to set a breakpoint at a specific line in a specific file via pyrcl - Community / Test Automation - Lauterbach Support

0

How to set a breakpoint at a specific line in a specific file via pyrcl Awaiting Agent

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)

Comment (1)

Wiem Wala Benayed

This is possible using :

def setBreakpointAtFileLine(self,file: str, line:int):

cmd = f'Break.Set \{file}\{line}'

self.dbg.cmd(cmd)



Add a comment

ID-0
To prove you are a human, please tell us the text you see in the CAPTCHA image