Open Source Tool Adding A Number Of Extra Useful Commands To The Debugging Console

Previously I mentioned an NSObject-category that provides more detailed class introspection when using the po command at the LLDB command prompt.

Here’s a Python based tool from Facebook that adds many different to the debugging console enhancing lldb called Chisel.

Some of the commands that chisel adds include commands for bordering, overlaying a rectangle specific views or layers, commands for hiding views, and view controllers, commands for adding watchpoints on variables or objects.

This help display shows the added commands:

bmessage     — Run Python function __FBDebugCommands_bmessage
border       — Run Python function __FBDisplayCommands_border
caflush      — Run Python function __FBDisplayCommands_caflush
fa11y        — Run Python function __FBFindCommands_fa11y
flicker      — Run Python function __FBFlickerCommands_flicker
fv           — Run Python function __FBFindCommands_fv
fvc          — Run Python function __FBFindCommands_fvc
hide         — Run Python function __FBDisplayCommands_hide
mask         — Run Python function __FBDisplayCommands_mask
panim        — Run Python function __FBPrintCommands_panim
pca          — Run Python function __FBPrintCommands_pca
pcells       — Run Python function __FBPrintCommands_pcells
pclass       — Run Python function __FBPrintCommands_pclass
pinternals   — Run Python function __FBPrintCommands_pinternals
pinvocation  — Run Python function __FBInvocationCommands_pinvocation
pivar        — Run Python function __FBPrintCommands_pivar
presponder   — Run Python function __FBPrintCommands_presponder
ptv          — Run Python function __FBPrintCommands_ptv
pvc          — Run Python function __FBPrintCommands_pvc
pviews       — Run Python function __FBPrintCommands_pviews
show         — Run Python function __FBDisplayCommands_show
showimage    — Run Python function __FBVisualizationCommands_showimage
showimageref — Run Python function __FBVisualizationCommands_showimageref
showlayer    — Run Python function __FBVisualizationCommands_showlayer
showview     — Run Python function __FBVisualizationCommands_showview
unborder     — Run Python function __FBDisplayCommands_unborder
unmask       — Run Python function __FBDisplayCommands_unmask
vs           — Run Python function __FBFlickerCommands_vs
wivar        — Run Python function __FBDebugCommands_wivar

You can find Chisel on Github here.

A nice enhancement to the standard lldb command set.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: Open Source Tool Adding A Number Of Extra Useful Commands To The Debugging Console

©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *