Xcode - can't find Debug View Hierarchy button

2019-07-20 20:15发布

问题:

I can't find the Debug View Hierarchy button in Xcode.

I've read this:

Xcode 6.1 can't find 'debug view hierarchy' button

and launched my app on the iOS8 simulator but still no luck. Something to do with the Architectures perhaps?

Here's what I'm using:

回答1:

On the left side of the debugger, in the toolbar below:

It is the second icon from the right in the image. It might be black or greyed out depending on whether Xcode is in focus or not.

It works fine on device and simulator. Either click it to break or break using a breakpoint/debugger and use it.