debug python scripts from pythonQt application
Dynamic Python binding for Qt Applications
Brought to you by:
florianlink,
marcusbarann
Hi,
I saw from MeVisLab this feature:
http://www.mevislab.de/docs/current/MeVisLab/Resources/Documentation/Publish/SDK/ScriptingReference/python.html
debugging chapter.
Is it possible to do something similar(pdb server) with a pythonQt based application, is there any doc which explain how to implement this?
Best regards,
Alexis.
Yes, the key element to get this working is that you need to import the debugger into the embedded Python inside of your application and need to run the debugger.
import sys
sys.path.append("C:\Python27\Lib\site-packages")
import rpdb2; rpdb2.start_embedded_debugger('mevis')
This will then automatically connect to the running WinPDB debugger.
Hi, thank you very much, it works perfectly. It's unbelievable how it's simple to use. Once again great job!
By the way here is our free project using PythonQt:
https://hephaistos.lpp.polytechnique.fr/redmine/projects/socexplorer/wiki/Wiki