| (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 bar | |
| Breakpoint 1: where = lldb_inlineLambdaRepresentation.kexe`kfun:#bar(){}kotlin.Int + <breakpoint offset> at main.kt:10:1, 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_inlineLambdaRepresentation.kexe`kfun:#bar(){}kotlin.Int at main.kt:10:1 | |
| 7 return action() | |
| 8 } | |
| 9 | |
| -> 10 fun bar() = 24 | |
| ^ | |
| 11 | |
| 12 fun main(args: Array<String>) { | |
| 13 foo { | |
| (lldb) bt | |
| * thread #<thread id>, stop reason = breakpoint 1.1 | |
| * frame #0: <frame pc> lldb_inlineLambdaRepresentation.kexe`kfun:#bar(){}kotlin.Int at main.kt:10:1 | |
| frame #1: <frame pc> lldb_inlineLambdaRepresentation.kexe`<inlined-lambda> at main.kt:14:9 | |
| frame #2: <frame pc> lldb_inlineLambdaRepresentation.kexe`kfun:#foo(kotlin.Function0<kotlin.Unit>){} at main.kt:7:12 | |
| frame #3: <frame pc> lldb_inlineLambdaRepresentation.kexe`kfun:#main(args=[]){} at main.kt:13:5 | |
| (lldb) q |