私はWindowsでPyramid開発を始めました。私はPython 2.7をインストールしました。私はvirtualenvを使って、私のPyramidアプリケーション用の素敵なサンドボックスを作りました。 Eclipse IndigoでPyDev 2.4を作成しました。私はまた、私のvirutalenv専用のPyDevインタプリタを作成したので、すべてのディレクトリにアクセスする必要があります。Eclipseを使用してpserveをデバッグする方法はありますか?
私は新しいデバッグ構成を設定しました。
- プロジェクト:testappと(ワークスペース内のみプロジェクト)
- メインモジュール:$ {workspace_loc:testappと/スクリプト/ pserve-script.py}
- Argsの:開発。のini
- 作業ディレクトリ:その他:$ {workspace_loc:testappと/ testappと}
Iが出力され、デバッグを打つ:
pydev debugger: starting Starting server in PID 2208.
Unhandled exception in thread started by
Traceback (most recent call last):
File "C:\Tools\eclipse-cpp-indigo-SR1-incubation-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.3.0.2011121518\pysrc\pydevd.py", line 200, in __call__ Unhandled exception in thread started by
Traceback (most recent call last):
Unhandled exception in thread started by
Traceback (most recent call last):
File "C:\Tools\eclipse-cpp-indigo-SR1-incubation-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.3.0.2011121518\pysrc\pydevd.py", line 200, in __call__ self.original_func(*self.args, **self.kwargs)
Unhandled exception in thread started by
File "C:\Tools\eclipse-cpp-indigo-SR1-incubation-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.3.0.2011121518\pysrc\pydevd.py", line 200, in __call__
TypeErrorTraceback (most recent call last):
self.original_func(*self.args, **self.kwargs) :
File "C:\Tools\eclipse-cpp-indigo-SR1-incubation-win32-x86_64\eclipse\plugins\org.python.pydev.debug_2.3.0.2011121518\pysrc\pydevd.py", line 200, in __call__ self.original_func(*self.args, **self.kwargs)
TypeErrorThreadedTaskDispatcher object argument after ** must be a mapping, not tuple
TypeError: self.original_func(*self.args, **self.kwargs) : ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple
TypeErrorThreadedTaskDispatcher object argument after ** must be a mapping, not tuple :
ThreadedTaskDispatcher object argument after ** must be a mapping, not tuple
serving on http://0.0.0.0:6543
それは、サーバが実行されていると言うにもかかわらず、それはありません。そのポートでリッスンしているものはありません。
これを修正する方法はありますか?デバッグは必ずしも必要ではありませんが、私は完全にセットアップされた開発環境が好きです。ありがとう!
私はPyDev 2.4をインストールしていないことを実感しました。 2.4にアップグレードしても、同じエラーが表示されます。 – jmacdonagh