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?

0

Hi, 

There's a setting for this in Preferences | Build, Execution, Deployment | Debugger | Stepping, you can disable stepping into library scripts from there.

1

Thank you, Andrey, I can't believe I read over that.

Follow up:

  • If I also want to exclude selenium, how would I do that. I tried selenium* but that didn't work. Does it take an absolute path?
  • In Settings | Languages & Frameworks | BDD I see it mentions "behave" in the Preferred BDD framework drop down. It tells me it isn't installed. However, I did install it with pip. Does it refer to something else?
0
  • If I also want to exclude selenium, how would I do that. I tried selenium* but that didn't work. Does it take an absolute path?

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). 

  • In Settings | Languages & Frameworks | BDD I see it mentions "behave" in the Preferred BDD framework drop down. It tells me it isn't installed. However, I did install it with pip. Does it refer to something else?

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).

0

请先登录再写评论。