Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use LLDB from Terminal

Normally I'm using LLDB from Xcode, but for some cases I would prefer using Terminal. I tried to type in "xcrun lldb" , and then I set lldb mode, but how do I set the right target?

like image 763
MCMatan Avatar asked Oct 20 '22 08:10

MCMatan


1 Answers

iOS Simulator

$ lldb
> process attach -n "AppName" -w

Then start app in iOS Simulator (ioslib can do this from command line). LLDB will connect once it discovers the app process.

iOS Device

Use ios-deploy (ios-deploy -d -W -b path/to/foo.app). It will launch and connect an LLDB session.

OSX App

process attach -n "AppName" in LLDB might work (not verified).

like image 174
tboyce12 Avatar answered Oct 23 '22 16:10

tboyce12