The debugserver binary needs to be in the /usr/bin directory; otherwise, it will crash on launch.
Start
✔️ Remote Debugging over wifi is very slow, utilize iproxy to debug over USB connection.
On your host, configure iproxy
sudo iproxy 12341234
Inside your iPhone SSH session
# ✅ Recommended Way # launch server with no process attachedprocess connect connect://127.0.0.1:1234
# or Wait for process to spawndebugserver 0.0.0.0:1234 --waitfor=DVIA-v2
# or attach to running processdebugserver 0.0.0.0:1234 -a DVIA-v2
From your host, inside lldb
lldb
platform select remote-ios
process connect connect://127.0.0.1:1234
# if launched with no process attachedprocess attach --pid 5039
Cheatsheet
# Show memory mapimage dump sections DVIA-v2
# Show disassembly at source address# Src + offsetdis -s 0x00000001001bd300+0x4138000
# Set breakpointbr set -a 0x1042f5314
# Show registersregister read# Write to registerregister write x0 0x1
# Break at function callb ptrace