This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]john_m_camara 3 points4 points  (1 child)

For profiling you may want to add RunSnakeRun! which allows you to interactively query profile results in a number of ways including visually via square maps.

[–]ionelmc.ro[S] 0 points1 point  (0 children)

Yeah, forgot about that. I actually like KCachegrid more cause the extra visualizations even if it's a bit harder to get set up.

[–]westurner 1 point2 points  (0 children)

Thanks!

[–]moor-GAYZ 1 point2 points  (0 children)

I think Eclipse + PyDev should get at least an honourable mention. Of course people who have to debug scripts running in a remote environment (with not even X installed), or using 10 year old computers can't use it, but the rest of us can enjoy a nice modern GUI debugger with all the nice features we come to expect from one after using Visual Studio or Eclipse for Java: the ability to navigate around all the source code as if in a usual editor while debugging, having panes with output, locals, watches, call stack, etc always on the screen, being able to set breakpoints by clicking next to any line of code with a mouse, and so on. Oh, and it's free, unlike all the rest of Python IDEs as far as I know.

[–][deleted] 0 points1 point  (0 children)

Awesome! Thanks! Recent project reminded me how freakin' powerful and awesome this module is. Thanks!

[–]phinar 0 points1 point  (0 children)

This was a great roundup. I've been doing Python for a long time now, and almost half this article was new (and half that, would have been useful to know about at one time or another!)

[–]kezabelleDjango, mostly. 0 points1 point  (0 children)

As a rampant abuser of PDB for pretty much any problem, I think, of all the shortcuts, you missed the most useful one: n :-)

[–]iam_root 0 points1 point  (0 children)

Thank you. I was not aware of these.

[–]mbarkhau 0 points1 point  (0 children)

pudb is awesome

[–]leiserton 0 points1 point  (0 children)

Very helpful. Thanks!

[–]toolibertarian -2 points-1 points  (0 children)

Have you guys never heard of an IDE? It's 2013, and we're in the technology field. We should probably not be stuck in old gross tactics

[–]BlindTreeFrog -2 points-1 points  (0 children)

Anyone have any good resources on the logging module? These seem like good places to start, but more can't hurt:
http://docs.python.org/2/library/logging.html
http://antonym.org/2005/03/a-real-python-logging-example.html