【问题标题】:Can't debug a Pyramid project in Eclipse/Pydev with Waitress无法使用 Waitress 在 Eclipse/Pydev 中调试 Pyramid 项目
【发布时间】:2013-02-17 00:54:46
【问题描述】:

我正在尝试设置一个有效的 IDE,并开始在 Eclipse/Pydev 等友好的环境中使用 Pyramid 框架学习 Python。

如果我通过替换使用旧的粘贴脚本服务器,一切正常(调试,包括断点):

use = egg:waitress#main --> use = egg:Paste#http 

在 development.ini 中。

问题是新的“方法”是使用 Python 3+ 版本支持的女服务员,而 pastescript 仅适用于 2.x。

我想知道使用 Waitress 和 Pydev 调试是否存在任何已知问题以及是否有任何解决方法。

这些是我尝试在 Eclipse 中使用 Waitress 进行调试时出现的错误:

pydev debugger: starting
Starting server in PID 7508.
Unhandled exception in thread started by serving on http://0.0.0.0:6543

Traceback (most recent call last):
  File "/home/sh4/eclipse/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py", line 200, in __call__
    self.original_func(*self.args, **self.kwargs)
TypeErrorUnhandled exception in thread started by 
Traceback (most recent call last):
  File "/home/sh4/eclipse/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py", line 200, in __call__
: Unhandled exception in thread started by 
Traceback (most recent call last):
  File "/home/sh4/eclipse/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py", line 200, in __call__
    self.original_func(*self.args, **self.kwargs)
TypeError    self.original_func(*self.args, **self.kwargs)
TypeError: ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple
: Unhandled exception in thread started by 
Traceback (most recent call last):
  File "/home/sh4/eclipse/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py", line 200, in __call__
    self.original_func(*self.args, **self.kwargs)
TypeError: ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple
ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple
ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple

【问题讨论】:

    标签: python eclipse pydev pyramid waitress


    【解决方案1】:

    我认为这已经解决了——请尝试最新的夜间版本,看看它是否适合你。

    有关获取它的详细信息,请参阅:http://pydev.org/download.html。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-13
    • 1970-01-01
    • 2013-08-11
    • 2016-04-05
    • 1970-01-01
    • 1970-01-01
    • 2013-12-15
    • 2010-10-28
    相关资源
    最近更新 更多