ethanpailes / ethanpailes/debug-here

mac attach hang

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
73
Forks
3
PR merge metrics
No merged PRs in 30d

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 #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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.