Skip to content

Instantly share code, notes, and snippets.

@alemar11
Created September 28, 2015 21:36
Show Gist options
  • Save alemar11/d7b24bfaa712d53c37e6 to your computer and use it in GitHub Desktop.
Save alemar11/d7b24bfaa712d53c37e6 to your computer and use it in GitHub Desktop.
Xcode lldbinit
# Swift
command alias uikit expr import UIKit
command alias foundation expr import Foundation
command alias vh expr -l objc++ -O -- [[[UIWindow keyWindow] rootViewController] _printHierarchy]
# Objective-C
command alias uikitc expr @import UIKit
command alias foundationc expr @import Foundation
command alias vhc po [[[UIWindow keyWindow] rootViewController] _printHierarchy]
# Memory Breakpoint
# use: "br e memory"
breakpoint set -n malloc -N memory
breakpoint set -n free -N memory
breakpoint disable memory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment