Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

debugger on system with Python 2 and 3

0 views
Skip to first unread message

Yo Sato

unread,
Nov 27, 2009, 12:17:33 PM11/27/09
to pytho...@python.org
Hi,

I am a relative newcomer to the Python language, and only write Python
3. Now I would very much like to a more-than-basic debugger. However
it seems as if the fact that I have both Python 2 and 3 on the system
complicates the matter...

First I tried to use something called pydb, but it seems to invoke
python 2, and I don't know quite how to (or whether I can) configure
it for Python 3.

Secondly I installed something called IDLE3, which complains that TK
is not configured for Python 3.

I don't want to remove or default to Python 2, as there seem to be a
number of programs that rely on it.

I wonder how best to avoid my problems. Would perhaps somebody in the
same sort of situation share their wisdom??

Yo

Alan Franzoni

unread,
Nov 27, 2009, 2:03:10 PM11/27/09
to
On 11/27/09 6:17 PM, Yo Sato wrote:
> Hi,
>
> I am a relative newcomer to the Python language, and only write Python
> 3. Now I would very much like to a more-than-basic debugger. However
> it seems as if the fact that I have both Python 2 and 3 on the system
> complicates the matter...

You haven't told OS which OS you're using, and what are your exact
problems, BTW I think two good debuggers for Python are winpdb/rpdb2
(work on any platform, despite the name) and the one you get in
Eclipse+Pydev.

You should be able to pick your platform, even though I've never tested
them in Python 3.


--
Alan Franzoni
contact me at public@[mysurname].eu

Detlev Offenbach

unread,
Nov 28, 2009, 9:22:08 AM11/28/09
to
Hi,

eric4 snapshot releases support Python3.

Detlev

Yo Sato wrote:

--
Detlev Offenbach
det...@die-offenbachs.de

Yo Sato

unread,
Nov 29, 2009, 7:29:17 AM11/29/09
to pytho...@python.org
Thanx Alan,

I am using Fedora Core 11. I wanted to use emacs, rather than the
full-blown IDE or entirely gui-based debugger, and that's why I was
drawn to pydb in the first instance.

If there's no other choice I don't mind using winpdb, but it is
installed (through Yum) under Python2 library and invokes Py2 at
default... Don't quite know how to adapt it to Py3 or install the
right version under the right directory, yet. It seems as if some
environmental variable change is necessary. On the whole it doesn't
seem that there's much support in the third-party debuggers in general
as yet...

In the meantime I might ask if it is possible to adapt pydb (or
perhaps, IDLE) for Py3. Might be just a change in a env variable or
two...

Yo

On Fri, 27 Nov 2009 19:03:10 +0000, Alan Franzoni wrote:

> On 11/27/09 6:17 PM, Yo Sato wrote:
>> Hi,
>>
>> I am a relative newcomer to the Python language, and only write Python
>> 3. Now I would very much like to a more-than-basic debugger. However it
>> seems as if the fact that I have both Python 2 and 3 on the system
>> complicates the matter...
>

Nir

unread,
Nov 29, 2009, 2:08:02 PM11/29/09
to
rpdb2 should be compatible with Python 3.x.
And once you start a debugging session with rpdb2 (running with Python
3.x)
you can attach to it from a winpdb instance (running with Python 2.x)
0 new messages