Closed 0cyn closed 1 year ago
Explicitly specifying sudo /Applications/Binary\ Ninja.app/Contents/MacOS/plugins/lldb/bin/debugserver localhost:8000 --attach="wait"
allows connecting with "Attach to remote process".
Closed by error
This used to work and this is actually the primary workflow that I used to test remote debugging. Seems like a regression
This is NOT how the remote debugging is expected to work. You should be launching the lldb-server
using path/to/lldb-server p --server --listen 0.0.0.0:31337
. Then connect from within BN and it should work. Alternatively, you can use debugserver
like ./debugserver 0.0.0.0:31337 /path/to/helloworld
, but you MUST supply an executable path, or, as you have figured out, specify --attach
to inform the debugsever to connect to a process. Simply launching the debugserver without supplying an executable path or attach information does not work. I guess this probably would not work if you cannot using the lldb command line as well.
Please see remote debugging documentation: https://dev-docs.binary.ninja/guide/remote-debugging.html#macos_1
OS: macOS 12.4 (x86_64) SIP: Enabled
It's highly likely this can be reproduced for actual remote debugging sessions.
Program:
Repro:
wait
binary in BinaryNinjasudo /Applications/Binary\ Ninja.app/Contents/MacOS/plugins/lldb/bin/debugserver localhost:8000
127.0.0.1
&8000