-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug
More file actions
57 lines (36 loc) · 817 Bytes
/
Copy pathdebug
File metadata and controls
57 lines (36 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
(lldb) b src/main.rs:10
(lldb) r
(lldb) n
(lldb) s
(lldb) c
(lldb) p variable_name
(lldb) pt variable_name
(lldb) p *variable_name
(lldb) p my_option
(lldb) p my_option.is_some()
(lldb) p my_result
(lldb) p my_result.is_ok()
(lldb) p *boxed_value
(lldb) p rc_value.strong_count
(lldb) p *rc_value
(lldb) p vec_variable
(lldb) p hash_map_variable
(lldb) p string_variable
(lldb) p &variable
(lldb) x address
(lldb) p sizeof(Type)
(lldb) p variable._ownership
(lldb) p variable._borrow
(lldb) br set -f main.rs -l 10 -c "x > 5"
(lldb) command alias pc print -c
(lldb) expr (variable + 1) * 2
# Track variable moves
(lldb) bt
(lldb) frame variable
# Check current scope
(lldb) frame info
(lldb) thread list
(lldb) thread select 2
(lldb) thread backtrace
(lldb) p future_variable
(lldb) p task_handle