swift - How to get all the gesture recognizers attached to a view using LLDB in Xcode? -


i using xcode 8 beta 4 , swift 3. want use lldb check if gesture recognizer added/ working element in view controller.

how using lldb?

it quite simple: need find address of view in object inspector (if understand correctly, want use view hierarchy debugger): enter image description here create variable address in lldb , ask gesture recognizer property it:

(lldb) e uiview* $view = (uiview*) 0x10bd11cf0 (lldb) po [$view gesturerecognizers] <__nssingleobjectarrayi 0x170015f20>( <uigesturerecognizer: 0x174167200; state = possible; view = <uiview 0x10bd11cf0>; target= <(action=gesturechanged:, target=<testfacebooksdk.viewcontroller 0x100c0d6f0>)>> ) 

Comments