Re: PDB does not allow jumping to first statement?

2007-03-29 Thread [EMAIL PROTECTED]
On Mar 28, 6:05 pm, Chris Lasher [EMAIL PROTECTED] wrote: I have submitted this as a bug via SourceForge: https://sourceforge.net/tracker/? func=detailatid=105470aid=1689458group_id=5470 or if munged http://tinyurl.com/2nwxsf ThePythonfolks would like a test case and/or a patch. This is

Re: PDB does not allow jumping to first statement?

2007-03-28 Thread Chris Lasher
I have submitted this as a bug via SourceForge: https://sourceforge.net/tracker/? func=detailatid=105470aid=1689458group_id=5470 or if munged http://tinyurl.com/2nwxsf The Python folks would like a test case and/or a patch. This is well beyond my ken as a humble Python user. Could anybody more

Re: PDB does not allow jumping to first statement?

2007-03-27 Thread Duncan Booth
Chris Lasher [EMAIL PROTECTED] wrote: I noticed that I absolutely cannot jump back to the first statement (line 3, a = 1) using the jump command. I can jump to any other line BUT the first statement's using the jump line number command. I experience the same behavior with Winpdb and rpdb2.

Re: PDB does not allow jumping to first statement?

2007-03-27 Thread Peter Otten
Duncan Booth wrote: Chris Lasher [EMAIL PROTECTED] wrote: I noticed that I absolutely cannot jump back to the first statement (line 3, a = 1) using the jump command. I can jump to any other line BUT the first statement's using the jump line number command. I experience the same behavior

Re: PDB does not allow jumping to first statement?

2007-03-27 Thread Duncan Booth
Peter Otten [EMAIL PROTECTED] wrote: Which version of Python, and what happens when you try it? It works fine for me with Python 2.5 on Windows: C:\Temp\python25\python -m pdb t.py c:\temp\t.py(3)module() - a = 1 (Pdb) s c:\temp\t.py(4)module() - b = 2 (Pdb) j 3

Re: PDB does not allow jumping to first statement?

2007-03-27 Thread [EMAIL PROTECTED]
On Mar 26, 6:06 pm, Chris Lasher [EMAIL PROTECTED] wrote: Hi all, I have a simple script: --- #!/usr/bin/envpython a = 1 b = 2 c = a + b print c --- I launch said script withpdb: python-mpdbsimple.py I noticed that I absolutely cannot jump back to the first statement (line 3,

Re: PDB does not allow jumping to first statement?

2007-03-27 Thread Chris Lasher
On Mar 27, 5:59 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I tried on GNU/Linux and Python versions 2.4 and 2.5 and get the same behavior. Best as I can tell, it looks like a bug in Python. pdb, pydb, rpdb2 all handle the jump command by changing the frame f_lineno value. When the

PDB does not allow jumping to first statement?

2007-03-26 Thread Chris Lasher
Hi all, I have a simple script: --- #!/usr/bin/env python a = 1 b = 2 c = a + b print c --- I launch said script with pdb: python -m pdb simple.py I noticed that I absolutely cannot jump back to the first statement (line 3, a = 1) using the jump command. I can jump to any other line BUT