Update DEBUGGING.md

This commit is contained in:
SvyatoslavScherbina
2020-11-17 18:10:54 +03:00
committed by Stanislav Erokhin
parent dcf9fd27b7
commit 98b2f3feec
+6 -4
View File
@@ -197,9 +197,11 @@ Process 4985 launched: './program.kexe' (x86_64)
(lldb) fr var (lldb) fr var
(int) x = 1 (int) x = 1
(int) y = 2 (int) y = 2
(ObjHeader *) p = Point(x=1, y=2) (ObjHeader *) p = [x: ..., y: ...]
(lldb) p p (lldb) p p
(ObjHeader *) $2 = Point(x=1, y=2) (ObjHeader *) $2 = [x: ..., y: ...]
(lldb) script lldb.frame.FindVariable("p").GetChildMemberWithName("x").Dereference().GetValue()
'1'
(lldb) (lldb)
``` ```
@@ -245,8 +247,8 @@ Process 80496 stopped
12 } 12 }
Process 80496 launched: './program.kexe' (x86_64) Process 80496 launched: './program.kexe' (x86_64)
(lldb) expression -- Konan_DebugPrint(a_variable) (lldb) expression -- (int32_t)Konan_DebugPrint(a_variable)
(a_variable) one is 1(KInt) $0 = 0 (a_variable) one is 1(int32_t) $0 = 0
(lldb) (lldb)
``` ```