The "Debug / View Debugging" menu is always grayed out for me in Xcode 5 (and 6), even when the target is stopped at a breakpoint. How do I enable it?
-
Can you supply an image to illustrate what you mean? As your question isn't really much to go on. – Popeye Jun 04 '14 at 14:34
-
What about when you're not paused? View debugging pauses the run automatically, so you can't do it if you're already paused. – Scott Berrevoets Jun 04 '14 at 15:09
-
I'm having the same problem with the "Product" menu. I can't build or run anything. – kmiklas Jun 04 '14 at 20:26
-
@ScottBerrevoets, I tried both. Neither works. Does it work for you? – Binks Jun 05 '14 at 08:56
-
1Then it's probably a bug in Xcode, I'd file a radar – Scott Berrevoets Jun 05 '14 at 12:19
-
1Has a radar been filed for this? I can't get this feature to work in any of the simulators. I'm using Xcode 6 GM. – Aaron Sep 10 '14 at 16:56
8 Answers
For me (Xcode 6 Beta and Beta two) the View Debugging options are only enabled in 32bit simulators (e.g. works when I use 'iPhone 5' but not when I am using 'iPhone 5s')

- 786
- 5
- 2
-
Thanks, that was it. If anyone cares about this problem, you can duplicate radar #17375193. – Binks Jun 19 '14 at 07:45
-
It also works for me in 64-bit if I start a completely new project with Xcode 6.0. The old project still only works on 32-bit. – Binks Aug 15 '14 at 12:15
-
4
-
5
-
Cannot get it to work at all in Xcode 6.0.1 with a keyboard extension written in Swift. Tried every simulator from 4s up to 6, all iOS8 obviously. – SafeFastExpressive Sep 29 '14 at 06:40
-
6It works on 64-bit simulators if you add arm64 to the `Valid Architecture` settings of your target and if you set the `Architectures` settings to "Standard architectures" (includes arm64) – PatrickNLT Nov 27 '14 at 08:45
I believe that the Capture View Hierarchy feature is only available when the target is running iOS 8.
In Xcode 6 (beta 2) the schema popup on the toolbar lets you choose the type of simulated device. For me the fixed devices show up three times. This is because I have three environments available: iOS 7, iOS 7.1 and iOS 8. However, this information is missing from the popup, which appears to be an Xcode 6 bug. The bottom group of devices, including "Resizable iPhone" and "Resizable iPad", are running iOS 8. If you use one of these devices the View Debugging -> Capture View Hierarchy menu item becomes available.
However, iOS Simulator -> Hardware -> Device -> Manage Devices… lets you edit the device names to make them more informative.
Note that this crashes for me every time I try to view a hierarchy that is using a UIMapView.

- 16,981
- 4
- 79
- 106
Also make sure that view debugging isn't disabled in your current scheme's run options:
Xcode 6.1 still has the limitations about view debugging only working on 32 bit devices (iPhone 5 or older) and on iOS 8, though.

- 2,434
- 23
- 21
I have the same issue as well, but I could see it enabled when I create a new project using Swift.

- 780
- 1
- 8
- 13
Hmm.. people just guess it's targeted for iOS. On my OS X 10.8 MacBook pro with Xcode 5.1.1, sometimes the menu its always disabled for a project for Mac OS X.
On my OS X 10.9 Mac mini with Xcode 5.1.1, it is enabled.
Looks to me a bug..

- 623
- 7
- 9
Another option for view debugging is iOS-Hierarchy-Viewer: https://github.com/glock45/iOS-Hierarchy-Viewer

- 19
- 2
Test environment : Xcode version 6.1 (6A1052d)
Test project: My project ( support for 64- bit and iOS deployment target is iOS6)
Test results: The View Debugging options are only enabled in iPhone5 with iOS8
Test environment : Xcode Version 6.1 (6A1052d)
Test project : Xcode-ViewDebugging ( supports 64- bit and iOS deployment target is iOS8)
Test results : The View Debugging options are enabled in all simulators with iOS8
So be sure that it must be iOS8, but still do not know the specific rules

- 89
- 2
- 4
By adding support for 64bit (arm64) in your target, View Debugging is enabled for 64bit devices (iPhone 5s, iPhone 6 and iPhone 6 Plus)
In your target build settings make sure under Architectures that standard architectures is checked $(ARCHS_STANDARD), and under Valid Architectures you have arm64.

- 611
- 6
- 11