| (lldb) target create <path to executable> |
| Current executable set to <path to executable>. |
| (lldb) settings set stop-disassembly-display never |
| (lldb) command script import <path to lldb script> |
| (lldb) b kt42208-2.kt:27 |
| Breakpoint 1: where = lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:#listAddA(){} + <breakpoint offset> at kt42208-2.kt:27:5, address = <memory address> |
| (lldb) r |
| Process <process id> launched: <path to executable> |
| Process <process id> stopped |
| * thread #<thread id>, stop reason = breakpoint 1.1 |
| frame #0: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:#listAddA(){} at kt42208-2.kt:27:5 |
| 24 listAddA() |
| 25 } |
| 26 fun listAddA() { |
| -> 27 list.add(A()) |
| ^ |
| 28 } |
| (lldb) bt |
| * thread #<thread id>, stop reason = breakpoint 1.1 |
| * frame #0: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:#listAddA(){} at kt42208-2.kt:27:5 |
| frame #1: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:main$$inlined$foo$1.main$$inlined$foo$1#invoke(_this=main$$inlined$foo$1<value id>){} at kt42208-2.kt:24:5 |
| frame #2: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:main$$inlined$foo$1.main$$inlined$foo$1#$<bridge-DN>invoke(_this=main$$inlined$foo$1<value id>){}(){}kotlin.Any? at kt42208-2.kt:23:20 |
| frame #3: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:kotlin.Function0#invoke(){}1:0 at [K][Suspend]Functions:1:1 |
| frame #4: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:#main(){} at kt42208-1.kt:15:5 |
| (lldb) c |
| Process <process id> resuming |
| Process <process id> stopped |
| * thread #<thread id>, stop reason = breakpoint 1.1 |
| frame #0: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:#listAddA(){} at kt42208-2.kt:27:5 |
| 24 listAddA() |
| 25 } |
| 26 fun listAddA() { |
| -> 27 list.add(A()) |
| ^ |
| 28 } |
| (lldb) bt |
| * thread #<thread id>, stop reason = breakpoint 1.1 |
| * frame #0: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:#listAddA(){} at kt42208-2.kt:27:5 |
| frame #1: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:main$$inlined$foo$1.main$$inlined$foo$1#invoke(_this=main$$inlined$foo$1<value id>){} at kt42208-2.kt:24:5 |
| frame #2: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:main$$inlined$foo$1.main$$inlined$foo$1#$<bridge-DN>invoke(_this=main$$inlined$foo$1<value id>){}(){}kotlin.Any? at kt42208-2.kt:23:20 |
| frame #3: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:kotlin.Function0#invoke(){}1:0 at [K][Suspend]Functions:1:1 |
| frame #4: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:#main(){} at kt42208-1.kt:16:5 |
| (lldb) c |
| Process <process id> resuming |
| Process <process id> stopped |
| * thread #<thread id>, stop reason = breakpoint 1.1 |
| frame #0: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:#listAddA(){} at kt42208-2.kt:27:5 |
| 24 listAddA() |
| 25 } |
| 26 fun listAddA() { |
| -> 27 list.add(A()) |
| ^ |
| 28 } |
| (lldb) bt |
| * thread #<thread id>, stop reason = breakpoint 1.1 |
| * frame #0: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:#listAddA(){} at kt42208-2.kt:27:5 |
| frame #1: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:main$$inlined$foo$1.main$$inlined$foo$1#invoke(_this=main$$inlined$foo$1<value id>){} at kt42208-2.kt:24:5 |
| frame #2: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:main$$inlined$foo$1.main$$inlined$foo$1#$<bridge-DN>invoke(_this=main$$inlined$foo$1<value id>){}(){}kotlin.Any? at kt42208-2.kt:23:20 |
| frame #3: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:kotlin.Function0#invoke(){}1:0 at [K][Suspend]Functions:1:1 |
| frame #4: <frame pc> lldb_kt42208WithVariableAndNest-c00de655.kexe`kfun:#main(){} at kt42208-1.kt:17:5 |
| (lldb) q |