This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bedapisl
Recipients bedapisl
Date 2021-12-31.20:46:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640983604.86.0.570920927154.issue46215@roundup.psfhosted.org>
In-reply-to
Content
Consider simple script:
```
for i in range(1):
    import pdb
    pdb.set_trace()

x = y + z
```
After running it and pressing 'c' to continue:

```
test$ python test.py
> /Users/bedrich.pisl/test/test.py(1)<module>()
-> for i in range(1):
(Pdb) c
```
I get error, but with wrong error line
```
Traceback (most recent call last):
  File "/Users/bedrich.pisl/test/test.py", line 1, in <module>
    for i in range(1):
NameError: name 'y' is not defined
```
The error is actually on line 5 not 1.
History
Date User Action Args
2021-12-31 20:46:44bedapislsetrecipients: + bedapisl
2021-12-31 20:46:44bedapislsetmessageid: <1640983604.86.0.570920927154.issue46215@roundup.psfhosted.org>
2021-12-31 20:46:44bedapisllinkissue46215 messages
2021-12-31 20:46:44bedapislcreate