Setting a Break Point Under PyQtΒΆ

This is simply a note to myself so I can quit googling how to do this.

From this answer on Stack Overflow, to set a break point in a PyQt4 application insert:

import pdb, PyQt4
PyQt4.QtCore.pyqtRemoveInputHook()
pdb.set_trace()