TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Debugging in Python (2009)

38 pointsby mattybabout 15 years ago

7 comments

mrshoeabout 15 years ago
The lack of discussion about pdb on the internet speaks to Python's simplicity and transparency. There just aren't many subtle traps to fall into from which you need a debugger to free yourself.<p>At my current job I write C++ and I use a debugger practically every day. My previous job was all Python and I reached for pdb maybe 3 times in 4 years.
评论 #1359706 未加载
rarrrrrrabout 15 years ago
I prefer <a href="http://winpdb.org/" rel="nofollow">http://winpdb.org/</a> (Not windows only.)<p>The debugger runs as a full screen GUI app, which you attach via sockets to a running process, so you can easily debug stuff like FCGIs on other machines, etc.
评论 #1360300 未加载
评论 #1360033 未加载
mclinabout 15 years ago
Or if you use PyDev for Eclipse:<p>import pydevd; pydevd.settrace('192.168.xxx.xxx')<p>Same kind of thing, but with full debug UI, and you can debug remote processes, eg behind apache!
MOdMacabout 15 years ago
ipdb lets you use pdb in a ipython shell which makes it much more powerful. <a href="http://pypi.python.org/pypi/ipdb" rel="nofollow">http://pypi.python.org/pypi/ipdb</a>
评论 #1360513 未加载
bclabout 15 years ago
There is also a fairly useful debug module named epdb from the guys at rpath. It opens up a port and lets you netcat to it and debug remotely. This is great for running things in a virt and being able to actually cut and paste to the debug session.<p><a href="http://bitbucket.org/rpathsync/epdb" rel="nofollow">http://bitbucket.org/rpathsync/epdb</a>
simplegeekabout 15 years ago
Has anyone had any success with any Python debugger to debug multi-threaded programs? Just asking out of curiosity.
kqueueabout 15 years ago
I still prefer prints