I an trying to find out how to debug iphone program without using xcode by reading here but I cannot get it to work
I managed to change my Xcode setting (Xcode 10) so that the .app file that gets created after build is now inside a folder within my project folder. This makes it easier to get the path to the .app file for lldb, and I can load the app file in lldb using something like
$ lldb /Projects/Sketch/build/Debug/Sketch.app
but I am not sure what to do from here onwards. I tried process launch
and run
, but they don't seem to start the .app file in debug mode like Xcode does. What should I do to start debugging iphone project outside Xcode?
The things I specifically want to do:
put breakpoints at particular lines of the .m files (in the same way I would click on the line number in a running iphone program in Xcode to put a breakpoint there)
while at a debug point, display values in arrays using matplotlib (this is the main reason I am trying to run lldb outside of Xcode, as it looks like matplotlib doesn't work in the lldb console in Xcode)
single step, step over and step out in the C code