embedded scripts debugging

Miki Tebeka miki.tebeka at zoran.com
Tue Jan 11 03:30:56 EST 2005


Hello Andrey,

> So the question is: Is there suitable library for simple python gui 
> debugger, or may be there are some other techniques for debugging 
> embedded scripts?
What I usually do is add
    from pdb import set_trace
in the embedded module somewhere and then add a call to set_trace
(breakpoint) whenever I with.
When the code reaches the call to set_trace, you'll have pdb prompt and you
can debug as you like.

Note that you can't add breakpoint dynamically this way.

HTH.
--
------------------------------------------------------------------------
Miki Tebeka <miki.tebeka at zoran.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys



More information about the Python-list mailing list