Debugging an iPhone when an external accessory is attached?

957 views
Skip to first unread message

Måns Bernhardt

unread,
Jan 11, 2011, 1:30:34 PM1/11/11
to cocoa-unbound
Hi,

Does anyone know if there is a way to run a debug session on your
iPhone using Xcode when an external accessory is attached? As far as I
understand the Apple tool "Accessory Test System (ATS)" does not seem
to allow that even though the provided hardware consist of a USB cable
plus a female and male iPhone connector?

/Måns

Cyril Godefroy

unread,
Jan 11, 2011, 1:50:45 PM1/11/11
to cocoa-...@googlegroups.com
That's why there is wifi debugging. I have no pointer, but look for it in the docs (not useless google).

Envoyé de mon iPad

Cyril Godefroy

unread,
Jan 11, 2011, 4:52:48 PM1/11/11
to cocoa-...@googlegroups.com
OK, sorry think I mistook remote instruments with remote debugger.

Head desk and facepalm at the same time...

Cyril

Stuart Tevendale

unread,
Jan 12, 2011, 3:07:52 AM1/12/11
to cocoa-unbound
Hi,
here's how we do it: http://www.yellowfield.co.uk/blog/?p=20

regards

Stuart

Lane Roathe

unread,
Jan 12, 2011, 2:17:33 AM1/12/11
to cocoa-unbound
If the external device has a passthrough USB connector then you can do
standard debugging. Works just like standard development, including
profiling and other instruments. I've never tried WIFI debugging, but
I'd that that should also work, and might even be preferable as
communication for debugging purposes does have some minor effect on
transfer rates with the EA when using the same cable for both.

-lane

Eric Blair

unread,
Jan 12, 2011, 8:39:27 AM1/12/11
to cocoa-...@googlegroups.com
So you've got a Dock cable -> mini USB converter -> dockStubz connection between the computer and iPhone, if I'm reading that correctly?

For a while, Kensington made a car charge that came with a detachable USB dock cable that had a pass-through dock port. It was the "Kensington K33368 4-in-1 Car Charger." According to http://www.touchcentric.com/blog/archives/123, that cable worked for debugging while the VGA adapter was connected. The car charger's long-discontinued, but you can still find them on ebay.

I'd be thinking about grabbing one the next time I need to do some video-out work, but I'll check out the dockStubz approach, too.

--Eric

Stuart Tevendale

unread,
Jan 12, 2011, 2:07:32 PM1/12/11
to cocoa-unbound
It's a USB -> mini USB cable to the dockStubz. The dockStubz is
sandwiched between the iPad (in this case) and the external accessory.

Regards

Stuart

On Jan 12, 2:39 pm, Eric Blair <eric.s.bl...@gmail.com> wrote:
> So you've got a Dock cable -> mini USB converter -> dockStubz connection between the computer and iPhone, if I'm reading that correctly?
>
> For a while, Kensington made a car charge that came with a detachable USB dock cable that had a pass-through dock port. It was the "Kensington K33368 4-in-1 Car Charger." According tohttp://www.touchcentric.com/blog/archives/123, that cable worked for debugging while the VGA adapter was connected. The car charger's long-discontinued, but you can still find them on ebay.
Reply all
Reply to author
Forward
0 new messages