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

已回答

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

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

0

请先登录再写评论。