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,

 

 

 

0

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.

0

请先登录再写评论。