having trouble with debuging QyPython plugins from Eclipse: - Win 7 x64 - QGIS 2.7 - Eclipse Luna with PyDev installed
Tried to debug using Remote Debugger (http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/ide_debugging.html) Remote Debbuer displays "Debug Connection Failed"
Tried to debug using settrace() as it is explained here: http://linfiniti.com/2011/12/remote-debugging-qgis-python-plugins-with-pydev/ Few days this approach working fine but today when I started QGIS desktop - desktop hangs on Startup Popup with "Restoring loaded plugin" status. I.e. the break point in my plugn is not hit. If I remove settracte() from code - QGIS is started OK. Looks like some break in link between QGIS and PyDev Debug Server.
I'm using Simple Test Plugin created by plugin builder. Here is the code for setrace()
import sys sys.path.append("C:/eclipse/plugins/org.python.pydev_220.127.116.11502050007/pysrc") from pydevd import * FORM_CLASS, _ = uic.loadUiType(os.path.join( os.path.dirname(__file__), 'Test_dialog_base.ui')) class TestDialog(QtGui.QDialog, FORM_CLASS): def __init__(self, parent=None): """Constructor.""" super(TestDialog, self).__init__(parent) # Set up the user interface from Designer. # After setupUI you can access any designer object by doing # self.<objectname>, and you can use autoconnect slots - see # http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html # #widgets-and-dialogs-with-auto-connect settrace() self.setupUi(self)
How do I fix this?
Windows restart does not help. Deleting .qgis2 folder does not help either.