'Debug actions'

def debug_command(self, command):

    self.main.ipyconsole.write_to_stdin(command)
    focus_widget = self.main.ipyconsole.get_focus_widget()
    if focus_widget:
        focus_widget.setFocus()
