Debugging Pyramid 1.3 applications with PyCharm
I can't debug Pyramid 1.3 applications on PyCharm with windows. In the past I've used Pyramid 1.2 on Mac, so I don't know which is it that's causing the problem.
I can debug other Python programs in this environment with PyCharm.
Here's the failure
C:\Users\swirsky\Documents\Projects\thrillscience\dayenu\env\Scripts\python.exe "C:\Program Files (x86)\JetBrains\PyCharm 2.0.1\helpers\pydev\pydevd.py" --client 127.0.0.1 --port 2175 --file C:/Users/swirsky/Documents/Projects/thrillscience/dayenu/env/Scripts/pserve-script.py development.ini
pydev debugger: starting
Connected to pydev debugger (build 111.107)
Unhandled exception in thread started by
Unhandled exception in thread started by
Unhandled exception in thread started by
Unhandled exception in thread started by
Traceback (most recent call last):
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm 2.0.1\helpers\pydev\pydevd.py", line 170, in __call__
File "C:\Program Files (x86)\JetBrains\PyCharm 2.0.1\helpers\pydev\pydevd.py", line 170, in __call__
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm 2.0.1\helpers\pydev\pydevd.py", line 170, in __call__
Traceback (most recent call last):
self.original_func(*self.args, **self.kwargs)
self.original_func(*self.args, **self.kwargs)
File "C:\Program Files (x86)\JetBrains\PyCharm 2.0.1\helpers\pydev\pydevd.py", line 170, in __call__
TypeErrorTypeErrorself.original_func(*self.args, **self.kwargs)
: : TypeErrorself.original_func(*self.args, **self.kwargs)
ThreadedTaskDispatcher object argument after ** must be a mapping, not tupleThreadedTaskDispatcher object argument after ** must be a mapping, not tuple: TypeError
The line of code where this exception occurs is the last line in this function in pydevd.py
def __call__(self):
global_debugger = GetGlobalDebugger()
pydevd_tracing.SetTrace(global_debugger.trace_dispatch)
self.original_func(*self.args, **self.kwargs) # <--- Here's the exception
The debugger is invoked with this command:
C:\Users\swirsky\Projects\thrillscience\dayenu\env\Scripts\python.exe "C:\Program Files (x86)\JetBrains\PyCharm 2.0.1\helpers\pydev\pydevd.py" --client 127.0.0.1 --port 2175 --file C:/Users/swirsky/Projects/thrillscience/dayenu/env/Scripts/pserve-script.py development.ini
Any ideas? I have submitted a bug report.
Please sign in to leave a comment.
I figured out a work around!
It has to do with the switch from PasteScript to waittress.
I installed PasteScript in my virtualenv, and switched the server in development.ini
[server:main]
#use = egg:waitress#main # from this
use = egg:Paste#http # to this
host = 0.0.0.0
port = 6543
and debugging works again!