Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments