Attach a debugger to app launched via `devicectrl`

With the latest (26) version of Apple's developer tools, is there a way to manually attach a debugger (other than lldb) to an iOS app launched with "devicectl device process launch --start-stopped"?

In the past, this was possible via the ios-deploy third-party tool (now defunct), which provided a debugserver port. This information is notably missing when using devicectrl – although the process ID of the launch process is provided, and the tool is clearly aimed at letting you launch and attach to processes from the command line.

lldb can, of course, attach via its built-in support for this using the device set of commands. But I'm explicitly looking for a way to attach my own debugger via the GDB-compatible debug proxy.

Answered by dwarfland in 862695022

Since we're talking about debuggers here, I just want to say that having DWARF (1) in your user name is excellent — thanks for the chuckle!

that's actually funny; i never made that connection myself 🙈.

As to attaching your custom debugger to a process with devicectl, this is not possible with the currently available commands provided by that tool. Our folks who work on the tooling around that command are interested in hearing what your needs are, so please send them some information on the type of functionality you need through Feedback Assistant. Once you've done that, please post the FB number here for reference.

Thanx! i have logged a feedback as FB20753296 just now. Please don't hesitate to let me know if i can provide any more specifics or details to make this more actionable. Getting this functionality would really help us out a lot.

Thanx for your attention to the matter, marc

Since we're talking about debuggers here, I just want to say that having DWARF (1) in your user name is excellent — thanks for the chuckle!

As to attaching your custom debugger to a process with devicectl, this is not possible with the currently available commands provided by that tool. Our folks who work on the tooling around that command are interested in hearing what your needs are, so please send them some information on the type of functionality you need through Feedback Assistant. Once you've done that, please post the FB number here for reference.

— Ed Ford,  DTS Engineer

(1): https://dwarfstd.org

Accepted Answer

Since we're talking about debuggers here, I just want to say that having DWARF (1) in your user name is excellent — thanks for the chuckle!

that's actually funny; i never made that connection myself 🙈.

As to attaching your custom debugger to a process with devicectl, this is not possible with the currently available commands provided by that tool. Our folks who work on the tooling around that command are interested in hearing what your needs are, so please send them some information on the type of functionality you need through Feedback Assistant. Once you've done that, please post the FB number here for reference.

Thanx! i have logged a feedback as FB20753296 just now. Please don't hesitate to let me know if i can provide any more specifics or details to make this more actionable. Getting this functionality would really help us out a lot.

Thanx for your attention to the matter, marc

Attach a debugger to app launched via `devicectrl`
 
 
Q