add debugging shortcut

This commit is contained in:
Damien Elmes 2012-04-19 05:52:49 +09:00
parent 9628a83fe8
commit c0de34120f

View file

@ -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()