简体   繁体   English

通过Xcode视图调试找出视图代码的位置

[英]Finding out location of view code from Xcode view debugging

Xcode's view debugging provides the memory address, color, etc. of a subview, but it does not contain any info on where the view code reside (or the name of image contained in an image view) or which view controller contains the current view being examined. Xcode的视图调试可提供子视图的内存地址,颜色等,但不包含有关视图代码所在位置(或图像视图中包含的图像名称)或哪个视图控制器包含当前视图的信息。检查。 Basically, it's very hard to trace back from the debugged view to where the code reside, unlike a callstack that shows you exactly where things are. 基本上,很难从调试视图追溯到代码所在的地方,这与调用堆栈可以准确地显示事物的位置不同。

How can I navigate from view debugging to the right view controller class? 如何从视图调试导航到正确的视图控制器类?

我认为您可以尝试一个名为“ Reveal”的APP,这可以在调试时提供视图布局。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM