Get source file name from Python API?

Hi Folks,

Is there anyway to get the source file name for the current stop context? I am looking for something like the result of “source info”, but from Python API.


Hi Ian,

you should find everything you need through the functions of the SBFrame object <> for the frame you are interested in. E.g., to get the file+line info you should look at GetSymbolContext().GetLineEntry().