A simple way to debug your view hierarchy
Objective-C Ruby
Latest commit 567cbd2 May 27, 2016 @tapthaker Merge pull request #3 from ReadmeCritic/master
Correct the spelling of CocoaPods in README



Debug View is a simple implementation of method swizzling to add red borders over each view for Debugging.

Installation ¯_(ツ)_/¯


pod 'DebugView', '~> 0.0'

From Source

Download the project and copy the file in "Source" directory into your project

Usage (•ิ_•ิ)?

Nothing to do here, things will work automatically. YAY \(^ ^)/

When you want to stop debugging, write the following in your prefix.pch



Note: The examples are generated by randomly creating UIViews

Screenshot 1

Screenshot 2

Or you could try code injection

PS : Updated my iPhone to iOS 8, so you will have to wait for updated screenshots

Phone.app after code injection

Game center after code injection


Follow me on Twitter (@tapthaker)

Problems ? (✖╭╮✖)

  • Add a new issue on github.
  • Add a question on stackoverflow and mention me in a tweet with the link.

To improve

  • More debug additions.
  • Someway to filter and display only a part of the full info.