Do not open package source if an error is thrown from package

Answered

import os

 

os.path.join(None,'')

 

 

The above code throws exception. When PyCharm runs the code in debug mode, PyCharm will open Lib\ntpath.py and highlight the line that throws the exception.

How to disable the function so that PyCharm only focuses on my project script files?

1
1 comment

Go to Run | View Breakpoints... and enable Ignore library files for Any exception breakpoint:

0

Please sign in to leave a comment.