Add settrace command

This commit is contained in:
Florian Bruhin 2014-02-26 22:29:48 +01:00
parent 66852aa736
commit d4df78b75f
2 changed files with 10 additions and 0 deletions

View File

@ -54,6 +54,7 @@ from qutebrowser.widgets.mainwindow import MainWindow
from qutebrowser.widgets.crash import CrashDialog
from qutebrowser.commands.keys import KeyParser
from qutebrowser.utils.appdirs import AppDirs
from qutebrowser.utils.misc import set_trace
class QuteBrowser(QApplication):
@ -369,6 +370,7 @@ class QuteBrowser(QApplication):
'scroll_perc_y': browser.cur.scroll_percent_y,
'undo': browser.undo_close,
'pyeval': self.pyeval,
'settrace': set_trace,
'nextsearch': self.searchparser.nextsearch,
'yank': browser.cur.yank,
'yanktitle': browser.cur.yank_title,

View File

@ -309,3 +309,11 @@ class Version(Command):
"""Show version information."""
nargs = 0
class SetTrace(Command):
"""Set pdb trace."""
nargs = 0
hide = True