-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Use example code,
exec rust-lldb -p 43329 -o 'expression looping = 0' -o finish
......
(lldb) type category enable Rust
(lldb) process attach --pid 43329
Process 43329 stopped
- thread Don't require import of debug_here to use the macro #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00000001040105fd testdebughere`debug_here::internal::debug_here_unixy_impl::hf6d1cf537d18380d(debugger=Option<&str> @ 0x00007ffeebbfca40) at internal.rs:111:5
108
109 // Now we enter an infinite loop and wait for the debugger to come to
110 // our rescue
-> 111 while looping {}
112 }
113
114 /// Pop open a debugger on windows.
Target 0: (testdebughere) stopped.
Executable module set to "/Users/xxxx/Downloads/testdebughere/target/debug/testdebughere".
Architecture set to: x86_64h-apple-macosx-.
(lldb) expression looping = 0
(bool) $0 = false
(lldb) finish
here hung!
Need two ctl +C,and only breaking at the 111 line.
Metadata
Metadata
Assignees
Labels
No labels