How to see line numbers and traceback for errors?
Hi,
I just switched to PyCharm Professional and opened a new project.
When I run a unit test, it displays an error but does not print the traceback object and hence does not tell me which line the error occurred on.
How to configure it so that it displays the traceback?
PyCharm 2023.2 (Professional Edition)
Build #PY-232.8660.197, built on July 26, 2023
Subscription is active until February 10, 2024.
Runtime version: 17.0.7+7-b1000.6 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12
Registry:
ide.experimental.ui=true
Thank you,
Please sign in to leave a comment.
Hello,
Could you please upload a simplified version of your project here and tell us the upload ID so we can properly test it?
Also, please take a screenshot of your test file run configuration (Right-click on file, More Run/Debug…| Modify Run Configuration) and upload it to the thread.
Hello,
Was this every addressed? I am having the same issue. My traceback only includes the last link, which is generally a library file instead of a location in my code.
Best,
PyCharm 2024.1.4 (Professional Edition)
Build #PY-241.18034.82, built on June 24, 2024
Subscription is active until July 22, 2024.
Linux 6.8.0-36-generic
Non-Bundled Plugins:
com.intellij.ml.llm (241.18034.12)
Current Desktop: ubuntu:GNOME