From d4df78b75fbd2eee16f1cd10bb757bb0f9995a3a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 26 Feb 2014 22:29:48 +0100 Subject: [PATCH] Add settrace command --- qutebrowser/app.py | 2 ++ qutebrowser/commands/commands.py | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index 9106fbcd4..acff48dc3 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -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, diff --git a/qutebrowser/commands/commands.py b/qutebrowser/commands/commands.py index 2d307c938..14fa89ac6 100644 --- a/qutebrowser/commands/commands.py +++ b/qutebrowser/commands/commands.py @@ -309,3 +309,11 @@ class Version(Command): """Show version information.""" nargs = 0 + + +class SetTrace(Command): + + """Set pdb trace.""" + + nargs = 0 + hide = True