17

Is there a way to see a stacktrace of what various threads are doing inside a python process?

Let's suppose I have a thread which allows me some sort of remote access to the process.

2 Answers 2

6

Winpdb is a platform independent graphical GPL Python debugger with support for remote debugging over a network, multiple threads, namespace modification, embedded debugging, encrypted communication and is up to 20 times faster than pdb.

Features:

  • GPL license. Winpdb is Free Software.
  • Compatible with CPython 2.3 through 2.6 and Python 3000
  • Compatible with wxPython 2.6 through 2.8
  • Platform independent, and tested on Ubuntu Gutsy and Windows XP.
  • User Interfaces: rpdb2 is console based, while winpdb requires wxPython 2.6 or later.

Screenshot
(source: winpdb.org)

Sign up to request clarification or add additional context in comments.

2 Comments

Without any guidance on how to use the product to select and control threads, and without any indication on the user's part that they are even using Windows, this sounds suspiciously like a bullet-pointed advertisement.
@Brandorn: It is not windows-only. It is multiplatform as I clearly stated on the answer, in bold face. The screenshot shows clearly how you can debug threads.
2

About 4 years ago, when I was using twisted, manhole was a great way to do what you're asking.

http://twistedmatrix.com/projects/core/documentation/howto/telnet.html

Right now most of my projects don't use twisted, so I just WingIDE's remote debugging hooks to introspect a running process.

http://www.wingware.com/doc/debug/remote-debugging

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.