【发布时间】:2015-11-04 22:48:11
【问题描述】:
我目前在使用 Eclipse 和 pydev 时遇到了问题。我已经在我的代码中设置了这个:
import pydevd;pydevd.settrace();
我的调试服务器已启动并正在运行。
当我运行我的应用程序时,我可以看到它停止运行,因为我在那里设置了远程调试器。但是,当我切换回 eclipse 时,我无法单击 step over 或 step into 按钮。目前已禁用。
我已经在 pydev 中增加了日志级别,根据日志,它似乎可以成功连接到调试服务器:
2015-11-03T14:04:22+08:00 sawebserver-uwsgi@127.0.0.1 [info] ('Connecting to ', '127.0.0.1', ':', '5678')
2015-11-03T14:04:22+08:00 sawebserver-uwsgi@127.0.0.1 [info] ('Connected.',)
2015-11-03T14:04:23+08:00 sawebserver-uwsgi@127.0.0.1 [info] Received command: CMD_VERSION 501 1 1.1 UNIX ID
2015-11-03T14:04:23+08:00 sawebserver-uwsgi@127.0.0.1 [info] Received command: CMD_SET_PY_EXCEPTION 131 3 false;false;false;true;
2015-11-03T14:04:23+08:00 sawebserver-uwsgi@127.0.0.1 [info] Received command: CMD_SET_PROPERTY_TRACE 133 5
2015-11-03T14:04:24+08:00 sawebserver-uwsgi@127.0.0.1 [info] Received command: CMD_IGNORE_THROWN_EXCEPTION_AT 140 7 REPLACE:
2015-11-03T14:04:24+08:00 sawebserver-uwsgi@127.0.0.1 [info] Received command: CMD_REMOVE_DJANGO_EXCEPTION_BREAK 126 9 DjangoExceptionBreak
2015-11-03T14:04:24+08:00 sawebserver-uwsgi@127.0.0.1 [info] Received command: CMD_ENABLE_DONT_TRACE 141 11 true
2015-11-03T14:04:24+08:00 sawebserver-uwsgi@127.0.0.1 [info] Received command: CMD_RUN 101 13
我执行了 netstat,端口似乎可用:
tcp6 0 0 :::5678 :::* LISTEN
我有什么遗漏的吗?
【问题讨论】:
-
能不能发张eclipse这个状态下的截图,那里可能有一些线索。
-
这是它设法连接到调试器link的状态