Can python be used to debug other languages?

Cameron Laird claird at lairds.org
Tue Oct 1 09:44:31 EDT 2002


In article <anb8eg$baf$1 at slb5.atl.mindspring.net>,
Matt Gerrans <mgerrans at mindspring.com> wrote:
>Um, isn't that what debuggers are for?   Or do you mean something else?
>
>Python is excellent as a code generator for either of those languages.
>
>Jython can be pretty nifty for testing-as-you-go with Java in the same way
>that the interactive interpreter (or, better, IDLE) is for Python itself.
>This is more along the lines of unit testing (if you preserve the scripts
>for future regression testing and whatnot) or experimenting, but not
>debugging.
>
>I don't see how Python could do the job of a debugger in either C++ or Java.
			.
			.
			.
Yes, only more so.

I think people mean *wildly* different things by "debugging".
So, the answer is one of:
1.  Who knows?  The original poster needs to
    explain himself better.
2.  No, absolutely not; Python's a language, not
    a debugger.
3.  Yes, in a far-too-little-understood way:
    GDBMI, which I intend to write up in a tutorial
    in the next few months, nicely automates with
    Python.
4.  Yes, absolutely, it's far easier writing Java
    and C++ programs with Python than with Java
    and C++ alone.
-- 

Cameron Laird <Cameron at Lairds.com>
Business:  http://www.Phaseit.net
Personal:  http://starbase.neosoft.com/~claird/home.html



More information about the Python-list mailing list