Never been to DZone Snippets before? Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world Useful class for debugging Python processes to which you do not have TTY access. The example which comes to mind is CGI scripts. Nothing all that clever or special. Requires pdb.py from Pyth
Using pdb, the Python Debugger (Django Debugging Series, Part 3) I had a couple of comments about my last post saying that I should be sending all of the screencasts to the aggregator because this is content and isn't spam. So I'm going to do that. Thanks for all the feedback everyone! Hope you're enjoying the series. Screencast 3 Setup No setup today. pdb is included with python, so everything th
GAEのコードもCarbon Emacsで書いているわけですが、デバッガが使えないのがキツいと思っていたら、python標準のpdbをちょっとした変更だけで使えるという事がわかりました。従ってEmacsでもM-x pdbが出来るという事で、かなり心理的な負荷が下がりましたので、記録します。 pdbはpythonについているデバッガで、普通は以下のコードをデバッグしたいコードの周辺に埋め込んで実行すると、そこがブレークポイントとなって実行が止まります。後はgdb的にステップ実行していくわけです。 import pdb; pdb.set_trace() # この行を埋め込む for i in range(10): # 例えばここをステップ実行したい do something ところが、GAEだと上記のコードを埋め込んでもデバッグできません。set_traceで実行が止まってくれないのです。そこ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く