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.

Title: Stack Trace should show argument value passed into a function, not just the keyword
Type: enhancement Stage: resolved
Components: Versions: Python 3.5
Status: closed Resolution: duplicate
Dependencies: Superseder: traceback module has no way to show locals
View: 22936
Assigned To: Nosy List: Umank Behera, r.david.murray
Priority: normal Keywords:

Created on 2015-03-20 18:50 by Umank Behera, last changed 2022-04-11 14:58 by admin. This issue is now closed.

File name Uploaded Description Edit Umank Behera, 2015-03-20 18:50 source file
Messages (2)
msg238711 - (view) Author: Umank Behera (Umank Behera) Date: 2015-03-20 18:50
def main(foo):
    raise Exception("Some Exception")

bar = 1

On execution:
Traceback (most recent call last):
  File "", line 5, in <module>
  File "", line 2, in main
    raise Exception("Some Exception")
Exception: Some Exception

It should show the value of bar is 1 on the first frame printed.
msg238758 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-03-21 04:16
Duplicate of issue 22936.
Date User Action Args
2022-04-11 14:58:14adminsetgithub: 67912
2015-03-21 04:16:33r.david.murraysetstatus: open -> closed

superseder: traceback module has no way to show locals
versions: - Python 2.7, Python 3.4, Python 3.6
nosy: + r.david.murray

messages: + msg238758
resolution: duplicate
stage: resolved
2015-03-20 18:50:08Umank Beheracreate