mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
add debugging shortcut
This commit is contained in:
parent
9628a83fe8
commit
c0de34120f
1 changed files with 6 additions and 0 deletions
|
@ -11,3 +11,9 @@ from PyQt4.QtCore import *
|
|||
from PyQt4.QtGui import *
|
||||
from PyQt4.QtWebKit import QWebPage, QWebView
|
||||
from PyQt4 import pyqtconfig
|
||||
|
||||
def debug():
|
||||
from PyQt4.QtCore import pyqtRemoveInputHook
|
||||
from pdb import set_trace
|
||||
pyqtRemoveInputHook()
|
||||
set_trace()
|
||||
|
|
Loading…
Reference in a new issue