Search code examples
trace32lauterbach

How to put a breakpoint at a line in a module from a TRACE32 script?


I would like to place a breakpoint at a certain line in a certain file.

Using BREAK.SET I know that this is possible for functions and for an address.

I just want to place a breakpoint at a certain line(without knowing the address).

Is this possible in Lauterbach ?


Solution

  • Let's assume you want to set a breakpoint in line 42 of file c:\t32\myproject\myfile.c

    Then the command would be

    Break.Set \"c:\t32\myproject\myfile.c"\42
    

    or simply

    Break.Set \myfile\42