use lldb for iphone project in mac without using xcode

我是研究僧i 提交于 2019-12-11 16:07:53

问题


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

来源:https://stackoverflow.com/questions/53373971/use-lldb-for-iphone-project-in-mac-without-using-xcode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!