![]() debugger-plugin/1.kt | nl -pĤ var a_variable = foo("(a_variable) one is ", 1)ĥ var b_variable = foo("(b_variable) two is ", 2)Ħ var c_variable = foo("(c_variable) two is ", 3)ħ var d_variable = foo("(d_variable) two is ", 4)ġ2 lldb. Getting representation of the object variable (var) could also be done using the built-in runtime function Konan_DebugPrint (this approach also works for gdb, using a module of command cat. (lldb) script ("p").GetChildMemberWithName("x").Dereference().GetValue() ![]() (lldb) command script import dist/tools/konan_lldb.py * thread #1, name = 'program.kexe', stop reason = breakpoint 1.1įrame #0: program.kexe`kfun:main(kotlin.Array) at main.kt:5Ĩ data class Point(val x: Int, val y: Int) program.kexe -o 'b main.kt:5' -oĬurrent executable set to './program.kexe' (x86_64).īreakpoint 1: where = program.kexe`kfun:main(kotlin.Array) + 289 at main.kt:5, address = 0x000000000040af11 Modern debuggers provide several ways to set a breakpoint, see below for a tool-by-tool breakdown: lldbħ data class Point(val x: Int, val y: Int) > 3 println("I need your clothes, your boots and your motocycle") * thread #1, queue = '-thread', stop reason = step overįrame #0: 0x00000001000012f0 terminator.kexe`kfun:main(kotlin.Array) at hello.kt:3 * thread #1, queue = '-thread', stop reason = breakpoint 1.1įrame #0: 0x00000001000012e4 terminator.kexe`kfun:main(kotlin.Array) at hello.kt:2ģ println("I need your clothes, your boots and your motocycle") Process 28473 launched: '/Users/minamoto/ws/.git-trees/debugger-fixes/terminator.kexe' (x86_64) Println("I need your clothes, your boots and your dist/bin/konanc -g hello.kt -o terminatorĬurrent executable set to 'terminator.kexe' (x86_64).īreakpoint 1: where = terminator.kexe`kfun:main(kotlin.Array) + 4 at hello.kt:2, address = 0x00000001000012e4
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |