To find the position where my program crashes, the lldb terminal way is sufficient. But I do not manage that the source file name and line number is shown.
Sorry, I'm not sure I follow what you're asking.
Are you asking, how to generate a backtrace?
Same as gdb: bt
How to disable application-level exception handling?
In gdb, it's this: break fpc_raiseexception
In lldb, it's this: breakpoint set -n fpc_raiseexception
Works fine here with, for example, an exception raised like this:
procedure TForm1.Button1Click(Sender: TObject);
begin
raise Exception.Create('Some exception would occur');
end;
Displays this:
* frame #0: 0x0001d670 project1`FPC_RAISEEXCEPTION
frame #1: 0x00037b9c project1`BUTTON1CLICK(this=0x00654d30, SENDER=0x00657890) + 60 at unit1.pas:31
frame #2: 0x00104d08 project1`CLICK(this=0x00657890) + 88 at control.inc:2736
frame #3: 0x0013d94d project1`CLICK(this=0x00657890) + 29 at buttoncontrol.inc:54
frame #4: 0x0013dfcd project1`CLICK(this=0x00657890) + 61 at buttons.inc:169
etc...