Skip to content

mac attach hang  #12

Description

@inevity

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions