| (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 main.kt:11 |
| Breakpoint 1: where = lldb_inlineOnlyFunction.kexe`kfun:#main(kotlin.Array<kotlin.String>){} + 88 [inlined] <inlined-lambda> + <breakpoint offset> at main.kt:11:9, address = <memory address> |
| (lldb) b main.kt:12 |
| Breakpoint 2: where = lldb_inlineOnlyFunction.kexe`kfun:#main(kotlin.Array<kotlin.String>){} + 120 [inlined] <inlined-lambda> at main.kt:12:13, 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_inlineOnlyFunction.kexe`<inlined-lambda> at main.kt:11:9 |
| 8 fun main(args: Array<String>) { |
| 9 0.apply { |
| 10 foo() |
| -> 11 this.apply { |
| ^ |
| 12 foo() |
| 13 } |
| 14 } |
| (lldb) bt |
| * thread #<thread id>, stop reason = breakpoint 1.1 |
| * frame #0: <frame pc> lldb_inlineOnlyFunction.kexe`<inlined-lambda> at main.kt:11:9 |
| frame #1: <frame pc> lldb_inlineOnlyFunction.kexe`kfun:kotlin#apply__at__0:0(kotlin.Function1<0:0,kotlin.Unit>){0§<kotlin.Any?>}0:0 at Standard.kt:87:5 |
| frame #2: <frame pc> lldb_inlineOnlyFunction.kexe`kfun:#main(args=[]){} at main.kt:9:7 |
| (lldb) n |
| Process <process id> stopped |
| * thread #<thread id>, stop reason = breakpoint 2.1 |
| frame #0: <frame pc> lldb_inlineOnlyFunction.kexe`<inlined-lambda> at main.kt:12:13 |
| 9 0.apply { |
| 10 foo() |
| 11 this.apply { |
| -> 12 foo() |
| ^ |
| 13 } |
| 14 } |
| 15 } |
| (lldb) bt |
| * thread #<thread id>, stop reason = breakpoint 2.1 |
| * frame #0: <frame pc> lldb_inlineOnlyFunction.kexe`<inlined-lambda> at main.kt:12:13 |
| frame #1: <frame pc> lldb_inlineOnlyFunction.kexe`kfun:kotlin#apply__at__0:0(kotlin.Function1<0:0,kotlin.Unit>){0§<kotlin.Any?>}0:0 at Standard.kt:87:5 |
| frame #2: <frame pc> lldb_inlineOnlyFunction.kexe`<inlined-lambda> at main.kt:11:14 |
| frame #3: <frame pc> lldb_inlineOnlyFunction.kexe`kfun:kotlin#apply__at__0:0(kotlin.Function1<0:0,kotlin.Unit>){0§<kotlin.Any?>}0:0 at Standard.kt:87:5 |
| frame #4: <frame pc> lldb_inlineOnlyFunction.kexe`kfun:#main(args=[]){} at main.kt:9:7 |
| (lldb) q |