About the view hierarchy debugger

Use the view debugger to inspect the view hierarchy of your paused app. The debugger includes a hierarchical list of interface objects, a canvas with an exploded 3D rendering of the hierarchy, and inspectors for the attributes of an object and the size of a view.

To open the view debugger, click the Debug View Hierarchy button () at the top of the debug area.

View debugger layout

What objects are shown in the view debugger?

The view debugger shows a snapshot of the views, view controllers, and constraints in your running app. The objects include those added by the system such as container views, spacer views, and implicit constraints.

What is the purple square with the exclamation mark () in the indicator area and in the view hierarchy?

The runtime issues indicator appears in the Activity indicator area of the toolbar when the view debugger detects ambiguous constraints. The indicator is also shown next to any view with ambiguous constraints in the navigator area. Selecting a view with ambiguous constraints shows the indicator in the view debugger Size inspector next to a description of the issue.

Why are there so many objects on the canvas?

The objects in the view hierarchy may contain:

See alsoExamine the view hierarchyFilter the view hierarchyFocus on a part of the view hierarchyInspect a view controller, view, or constraint