Inherits from
- Handler: enthought.traits.ui.handler.Handler
Attributes
- break_points
The currently defined break points:
break_points = Constant(break_points)
- class_browser
A class browser:
class_browser = Constant(TheClassBrowser)
- data_watches
List of currently active data watches:
data_watches = List(Instance(DataWatch))
- debug_frame
Frame information received from the debugger:
debug_frame = Any
- favorites_browser
A favorites browser:
favorites_browser = Constant(TheFavoritesBrowser)
- fbi_viewer
An FBI Viewer
fbi_viewer = Property
- frame
Current frame being inspected:
frame = Instance(StackFrame, allow_none = True)
- frame_locals
Current selected frame's locals:
frame_locals = PythonValue
- frames
The list of stack frames currently being inspected:
frames = List(StackFrame)
- go
The debugger 'Go' button:
go = Button('Go', image = ImageResource('fbi_go'), orientation = 'horizontal')
- has_ui
Is the FBI being run under an app that has a UI:
has_ui = Bool(True)
- ignore_bp
Ignore the next request to set a break point?
ignore_bp = Bool(False)
- inspector
A universal inspector:
inspector = Constant(TheInspector)
- is_modal
Is the FBI being run modally:
is_modal = Bool(True)
- listener
A listener:
listener = Constant(TheListener)
- local_variables
List of local variables (including the arguments) for the current frame:
local_variables = List(FBIValue)
- modules
The set of modules containing break point information:
modules = Dict(Str, Instance(FBIModule))
- msg
Message to display to the user:
msg = Str
- next
The debugger 'Next' button:
next = Button('Next', image = ImageResource('fbi_next'), orientation = 'horizontal')
- object_source
An object source:
object_source = Constant(TheObjectSource)
- profiler
A profiler:
profiler = Constant(TheProfiler)
- quit
The debugger 'Quit' button:
quit = Button('Quit', image = ImageResource('fbi_quit'), orientation = 'horizontal')
- ret
The debugger 'Return' button:
ret = Button('Return', image = ImageResource('fbi_return'), orientation = 'horizontal')
- step
The debugger 'Step' button:
step = Button('Step', image = ImageResource('fbi_step'), orientation = 'horizontal')
- ui
The traits UI associated with this object:
ui = Instance(UI)
- value_tree
A scratch pad area for accumulating interesting values to look at:
value_tree = ValueTree
- view
view = View(VSplit(HFlow(TButton('step', label = 'Step', image = 'fbi_step', width = 80, enabled_when = 'debug_frame is not None'), TButton('next', label = 'Next', image = 'fbi_next', width = 80, enabled_when = 'debug_frame is not None'), TButton('ret', label = 'Return', image = 'fbi_return', width = 80, enabled_when = 'debug_frame is not None'), TButton('go', label = 'Go', image = 'fbi_go', width = 80, enabled_when = 'debug_frame is not None'), TButton('quit', label = 'Quit', image = 'fbi_quit', width = 80, enabled_when = 'debug_frame is not None'), dock = 'vertical', label = 'Toolbar', show_labels = False), VGroup('msg~', dock = 'vertical', label = 'Status', show_labels = False), Tabbed(Item('frames', show_label = False, label = 'Stack Frames', id = 'frames', editor = stack_frame_editor), Item('break_points@', show_label = False, label = 'Break Points', export = 'DockShellwindow', editor = InstanceEditor(id = 'internal')), Item('data_watches', show_label = False, label = 'Data Watches', id = 'data_watches', editor = dw_table_editor), Item('value_tree', show_label = False, label = 'Watch Values', export = 'DockShellwindow'), Item('class_browser@', show_label = False, label = 'Class Browser', export = 'DockShellWindow', editor = InstanceEditor()), Item('object_source@', show_label = False, label = 'Object Source', export = 'DockShellWindow', editor = InstanceEditor()), Item('favorites_browser@', show_label = False, label = 'Favorites Browser', export = 'DockShellWindow', editor = InstanceEditor()), Item('inspector@', show_label = False, label = 'Universal Inspector', export = 'DockShellWindow', editor = InstanceEditor()), Item('wiretap@', show_label = False, label = 'Wire Tap', export = 'DockShellWindow', editor = InstanceEditor()), Item('listener@', show_label = False, label = 'Listener', export = 'DockShellWindow', editor = InstanceEditor()), Item('profiler@', show_label = False, label = 'Profiler', export = 'DockShellWindow', editor = InstanceEditor()), Item('fbi_viewer@', show_label = False, label = 'Source View', editor = InstanceEditor(), export = 'DockShellWindow'), show_labels = False), VSplit(Item('local_variables', show_label = False, label = 'Local Variables', id = 'local_variables', editor = fbi_value_editor, export = 'DockShellWindow'), Tabbed(Item('frame_locals', show_label = False, label = 'Variable Values', editor = ValueEditor(), export = 'DockShellWindow'), Item('frame_locals', id = 'python_shell', show_label = False, label = 'Python Shell', editor = ShellEditor(share = True), export = 'DockShellWindow'))), id = 'splitter', show_labels = False), title = 'FBI: Frame Based Inspector', id = 'enthought.developer.helper.fbi', kind = 'livemodal', dock = 'tab', width = 0.80000000000000004, height = 0.80000000000000004, resizable = True, buttons = NoButtons)
- wiretap
A wiretap:
wiretap = Property
Inherited from base classes
Method summary
- add_break_point(self, file_name, line, bp_type = 'Breakpoint', code = '', end_line = None)
- break_point_lines(self, file_name)
- close(self, info, is_ok)
- exit_ui(self)
- get_module(self, file_name)
- get_module_for(self, frame)
- init(self, info)
- mark_bp_at(self, bp)
- remove_break_point(self, file_name, line = None, type = None)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __setstate__(self, state, trait_change_notify = True)
- add_class_trait(cls, name, *trait)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- apply(self, info)
- base_trait(self, name)
- can_drop(self, info, object)
- can_import(self, info, category)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- closed(self, info, is_ok)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- dock_control_for(self, info, parent, object)
- dock_window_empty(self, dock_window)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- has_traits_interface(self, *interfaces)
- init_info(self, info)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- open_view_for(self, control, use_mouse = True)
- position(self, info)
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- revert(self, info)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- setattr(self, info, object, name, value)
- show_help(self, info, control = None)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- trait_subclasses(cls, all = False)
- trait_view(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_view_for(self, info, view, object, object_name, trait_name)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- add_break_point(self, file_name, line, bp_type = 'Breakpoint', code = '', end_line = None)
Adds (or replaces) a break point.
- break_point_lines(self, file_name)
Returns the list of lines containing breakpoints for a specified file.
- close(self, info, is_ok)
Handles a request to close a dialog-based user interface by the user.
- exit_ui(self)
Exits the user interface.
- get_module(self, file_name)
Returns the FBIModule corresponding to a specified file path and name.
- get_module_for(self, frame)
Gets the FBIModule corresponding to a specified frame.
- init(self, info)
Initializes the controls of a user interface.
- mark_bp_at(self, bp)
Ensures we have a specified file line marked as having a break point.
- remove_break_point(self, file_name, line = None, type = None)
Removes all break point on a specified file or single line within the file.