Easy way to not step into Python standard library
I'm new to Python, and I'm looking for a way to not have the debugger step into standard Python libraries. Is there an easy way to do that?
In Java, it's easy to exclude java.*, etc. What would be the Python equivalent?
请先登录再写评论。
Hi,
There's a setting for this in Preferences | Build, Execution, Deployment | Debugger | Stepping, you can disable stepping into library scripts from there.
Thank you, Andrey, I can't believe I read over that.
Follow up:
If you mean excluding selenium library scripts, then the option I mentioned should do that. If it's not working, I suggest submitting a ticket to https://youtrack.jetbrains.com with detailed information (screenshots of your settings, steps to reproduce the issue, expected and actual results).
Please make sure that behave is present in the list of packages in Preferences | Project: <name> | Python Interpreter, and restart PyCharm. If the issue is still reproduced, it's a bug and I also suggest reporting it to https://youtrack.jetbrains.com (that said, the issue did not reproduce for me).