[PySide] How to pdb.set_trace() in a event function.

381 views
Skip to first unread message

flya flya

unread,
Nov 7, 2010, 10:46:57 PM11/7/10
to pys...@lists.openbossa.org
I'm moving my project from PyQt to PySide, In PyQt, when call QtCore.pyqtRemoveInputHook(), I can use pdb.set_trace in event funcion, but in PySide I found this function has been removed, when pdb.set_trace(), there will be  many messages like these:

QCoreApplication::exec: The event loop is already running
QCoreApplication::exec: The event loop is already running
QCoreApplication::exec: The event loop is already running
QCoreApplication::exec: The event loop is already running
QCoreApplication::exec: The event loop is already running
QCoreApplication::exec: The event loop is already running
QCoreApplication::exec: The event loop is already running
QCoreApplication::exec: The event loop is already running
QCoreApplication::exec: The event loop is already running
QCoreApplication::exec: The event loop is already running
QCoreApplication::exec: The event loop is already running



flya flya

unread,
Nov 8, 2010, 11:20:57 PM11/8/10
to pys...@lists.openbossa.org
If pyside can't use pdb.set_trace() to debug program, can anyone tell me how to debug pyside GUI program?

Matti Airas

unread,
Nov 9, 2010, 3:49:43 AM11/9/10
to pys...@srvrec006.openbossa.org
On 09.11.2010 06:20, ext flya flya wrote:
> If pyside can't use pdb.set_trace() to debug program, can anyone tell me
> how to debug pyside GUI program?

Hi flya,

pdb.set_trace() should work with PySide just fine in general. I don't
know about the event functions, though. If you think this is a bug in
PySide, could you please provide a runnable example and file a bug
against the issue in our bugzilla at http://bugs.openbossa.org?

Cheers,

ma.
_______________________________________________
PySide mailing list
PyS...@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

Reply all
Reply to author
Forward
0 new messages