英文:
Step into framework
问题
我想查看 [VZVirtualMachine isSupported]
的实现。我创建了一个控制台项目,以调试模式运行它,进入了这个方法,但它只是在 objc_msgSend 的实现中徘徊,至少我的耐心不够等待它找到实际的实现。有没有办法在更接近实际代码的地方设置断点?
英文:
For example I want to look at [VZVirtualMachine isSupported]
implementation. I created a console project, run it with debug, stepped into this method but all it does is wander around objc_msgSend implementation, at least my patience was not enough to wait until it finds the actual implementation. Is there some way to set a breakpoint closer to the actual code?
答案1
得分: 0
VZVirtualMachine是苹果的专有类。它的实现源代码未提供。您所拥有的是经过优化的汇编语言。如果您希望从中生成伪-ObjC或伪-C,有一些工具可以帮助,比如Hopper和IDA Pro,但它们不会提供类似原始源代码的内容,如果这是您想要的。要获得原始源代码,您需要访问苹果的源代码。
英文:
VZVirtualMachine is an Apple proprietary class. Its implementation source code is not shipped. What you have is optimized assembly language. If you want something that can generate pseudo-ObjC or pseudo-C from it, there are tools like Hopper and IDA Pro that can help, but they're not going to give you anything like the original source code if that's what you're looking for. To get that, you'd need access to Apple's source.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论