デバッグツール-Reveal
1152 ワード
1.現在のユーザーディレクトリにファイルを新規作成する.lldbinitは~/.lldbinit,LLDBは起動するたびにこのファイルをロードします.
2.はい.lldbinitには次のように入力します(シミュレータでのみ使用できます):
3.ocの下でappdelegateloadの中でブレークポイントして、“reveal_load”を入力して、swiftは“reveal_load_swift”を入力します
2.はい.lldbinitには次のように入力します(シミュレータでのみ使用できます):
command script import "~/Library/Application Support/Realm/rlm_lldb.py" --allow-reload
display @import UIKit
target stop-hook add -o "target stop-hook disable"
command script import /usr/local/opt/chisel/libexec/fblldb.py
command alias polayout po (id)[[UIWindow keyWindow] _autolayoutTrace]
command alias reveal_load expr (Class)NSClassFromString(@"IBARevealLoader") == nil ? (void *)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2) : ((void*)0)
command alias reveal_load_swift expr NSClassFromString("IBARevealLoader") == nil ? dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 2) : dlopen("", 0)
command alias reveal_start expr (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
3.ocの下でappdelegateloadの中でブレークポイントして、“reveal_load”を入力して、swiftは“reveal_load_swift”を入力します