PyDev can't debug anymore

心已入冬 提交于 2019-12-10 18:24:19

问题


I'm using eclipse 4.2.1 and pydev 2.7.1 (previously 2.6.0)

Everything was working fine, until suddenly the debugger stopped working - it prints "pydev debugger: starting" and then doesn't run the program at all, but just hangs.

Based on some information I found in other problem reports, I changed some debug constants (DEBUG_TRACE_LEVEL = 3 and DEBUG_TRACE_BREAKPOINTS = 3) and got this output now:

pydev debugger: starting
('Executing file ', '/path/to/my/program.py')
('arguments:', "['/path/to/my/program.py']")
('Connecting to ', '127.0.0.1', ':', '40972')
('Connected.',)
('received command ', '501\t1\t1.1')
sending cmd: CMD_VERSION 501    1   1.1

sending cmd: CMD_THREAD_CREATE 103  2   <xml><thread name="pydevd.reader" id="-1"/></xml>

sending cmd: CMD_THREAD_CREATE 103  4   <xml><thread name="pydevd.writer" id="-1"/></xml>

Nothing happens afterwards.

Edit: I created a new workspace and pydev seems to work there. Currently trying to find out which metadata folder is causing the problem.


回答1:


I found that removing .metadata/.plugins/org.eclipse.core.resources from the workspace solves the problem.. but it also removes all the projects so I had to reimport them.



来源:https://stackoverflow.com/questions/13597812/pydev-cant-debug-anymore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!