开发者

Debugging IPhone with GDB

开发者 https://www.devze.com 2023-02-28 21:54 出处:网络
I\'ve an IPhone (iOS 4.2.1). I\'d like to debug apps on it, with gdb. I understand that\'s easy (?) with XCode, when being a registered developer. I\'m not a开发者_如何学编程 registered dev., and I do

I've an IPhone (iOS 4.2.1). I'd like to debug apps on it, with gdb. I understand that's easy (?) with XCode, when being a registered developer. I'm not a开发者_如何学编程 registered dev., and I don't want to be one. To be more specific, I want to be able to attach to safari with gdb and debug it, by any means (jailbreak is ok).


You can install gdb on a jailbroken iPhone using Cydia or via apt-get install gdb from shell if you already have apt packages installed.

Then run gdb on device, from shell by ssh... attach / start process... gdb classic use.

I guess it is possible to run remotely gdb from a computer, but never tried outside Xcode.

As a side note, when remoting you device, for best use, do it through USB and not wifi. You can do this on linux/OSX using usbmuxd. On PC i guess iTunnel or something like.

And as a second side note, Years ago I was developing without being "a registered developer", with a jailbroken iPhone it is not hard to "bypass" Apple validations and to Debug directly from Xcode...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号