[New-bugs-announce] [issue39275] Traceback off by one line when

Facundo Batista report at bugs.python.org
Thu Jan 9 08:25:48 EST 2020


New submission from Facundo Batista <facundo at taniquetil.com.ar>:

When using pdb to debug, the traceback is off by one line.

For example, this simple script:

```
print("line 1")
import pdb;pdb.set_trace()
print("line 2")
print("line 3", broken)
print("line 4")
```

...when run produces the following traceback (after hitting 'n' in pdb, of course):

```
Traceback (most recent call last):
  File "/home/facundo/foo.py", line 3, in <module>
    print("line 2")
NameError: name 'broken' is not defined
```

----------
messages: 359678
nosy: facundobatista
priority: normal
severity: normal
status: open
title: Traceback off by one line when
versions: Python 3.6, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39275>
_______________________________________


More information about the New-bugs-announce mailing list