无法使用Waitress在Eclipse/Pydev中调试Pyramid项目 [英] Can't debug a Pyramid project in Eclipse/Pydev with Waitress

查看:74
本文介绍了无法使用Waitress在Eclipse/Pydev中调试Pyramid项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试建立一个可运行的IDE,并开始在诸如Eclipse/Pydev这样的友好环境中使用Pyramid框架学习Python.

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

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

在development.ini中.

问题在于,新的解决之道"是使用Python 3+版本支持的服务员,并且粘贴脚本仅在2.x上有效.

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

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

  pydev调试器:启动在PID 7508中启动服务器.通过在http://0.0.0.0:6543上服务启动的线程中未处理的异常追溯(最近一次通话):在__call__文件中的第200行,输入文件"/home/sh4/eclipse/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py"self.original_func(* self.args,** self.kwargs)由...启动的线程中的TypeErrorUnhandled异常追溯(最近一次通话):在__call__文件中的第200行,输入文件"/home/sh4/eclipse/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py":由...启动的线程中未处理的异常追溯(最近一次通话):在__call__文件中的第200行,输入文件"/home/sh4/eclipse/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py"self.original_func(* self.args,** self.kwargs)TypeError self.original_func(* self.args,** self.kwargs)TypeError:**之后的ThreadedTaskDispatcher对象参数必须是映射,而不是元组:由...启动的线程中未处理的异常追溯(最近一次通话):在__call__文件中的第200行,输入文件"/home/sh4/eclipse/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py"self.original_func(* self.args,** self.kwargs)TypeError:**之后的ThreadedTaskDispatcher对象参数必须是映射,而不是元组**之后的ThreadedTaskDispatcher对象参数必须是映射,而不是元组**之后的ThreadedTaskDispatcher对象参数必须是映射,而不是元组 

解决方案

我认为此问题已解决-请尝试使用最新的每晚版本,看看它是否对您有用.

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

I'm trying to setup a working IDE and starting to learn Python with Pyramid framework in a friendly environment like Eclipse/Pydev.

All is working ok (debug, breakpoints included) if I use the old pastescript server by replacing:

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

in development.ini.

The problem is that the new "way to go" is to use waitress which is supported in Python 3+ versions and pastescript only works on 2.x.

I would want to know if there is any kind of known issue debugging with Waitress and Pydev and if there's any workaround.

These are the errors when I try to debug in Eclipse using 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

解决方案

I think this was already fixed -- please try the latest nightly build to see if it works for you.

See: http://pydev.org/download.html for details on getting it.

这篇关于无法使用Waitress在Eclipse/Pydev中调试Pyramid项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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