Hilda Configuration¶
cfg¶
In Hilda's IPython shell, the variable cfg is available.
It holds the various settings for evaluation and monitoring, including
evaluation_unwind_on_error- WhenTrue, unwind on error during evaluation (Default:False).evaluation_ignore_breakpoints- WhenTrue, ignore breakpoints during evaluation (Default:False).nsobject_exclusion- WhenTrue, excludeNSObjectduring evaluation, reducing IPython autocomplete results ( Default:False).objc_verbose_monitor- WhenTrue, usingmonitor()will automatically print Objective-C method arguments ( Default:False).
ui¶
In Hilda's IPython shell, the variable ui is available.
You can use it to display Hilda's UI:
By default step_into and step_over will show this UI automatically.
You may disable this behavior by executing:
Attentively, if you want to display UI after hitting a breakpoint, you can register ui.show as callback:
Try playing with the UI settings by yourself:
# Disable stack view
ui.views.stack.active = False
# View words from the stack
ui.views.stack.depth = 10
# View last 10 frames
ui.views.backtrace.depth = 10
# Disassemble 5 instructions
ui.views.disassembly.instruction_count = 5
# Change disassembly syntax to AT&T
ui.views.disassembly.flavor = 'att'
# View floating point registers
ui.views.registers.rtype = 'float'
# Change addresses print color
ui.colors.address = 'red'
# Change titles color
ui.colors.title = 'green'