PyDev不能再调试 [英] PyDev can't debug anymore

查看:59
本文介绍了PyDev不能再调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用eclipse 4.2.1和pydev 2.7.1(以前是2.6.0)

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

一切正常,直到调试器突然停止工作-它输出"pydev调试器:正在启动",然后根本不运行程序,而只是挂起.

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.

根据我在其他问题报告中找到的一些信息,我更改了一些调试常量(DEBUG_TRACE_LEVEL = 3和DEBUG_TRACE_BREAKPOINTS = 3)并立即获得此输出:

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>

此后没有任何反应.

编辑:我创建了一个新的工作区,而pydev似乎可以在其中工作.当前正在尝试找出导致该问题的元数据文件夹.

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

推荐答案

我发现从工作区中删除.metadata/.plugins/org.eclipse.core.resources可以解决此问题..但是它也删除了所有项目,因此我不得不重新导入它们.

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.

这篇关于PyDev不能再调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆