Unable to debug in pycharm with pytest

For my situation, I found what the problem is: If there is –cov in pytest.ini, then breakpoints in pycharm won’t work, after deleting all –cov in pytest.ini, the breakpoints in pycharm can work. Reason: “The coverage module and pycharm’s debugger use the same tracing api (sys.settrace) – they don’t work together. ” — https://github.com/pytest-dev/pytest-cov/issues/131 References: … Read more

PyCharm: Turning selection to multiple cursors per line

Another option: with text selected, toggle column selection mode: The default shortcut to toggle the mode is: Linux/Windows: alt–shift–insert Mac cmd–shift–(numpad) * (or Edit→Column Selection Mode) It’s an inconvenient shortcut for Mac, as most laptops have no numpad. I remapped it to cmd–shift–8. Column selection mode actually has other purposes too: it changes the default … Read more

PyCharm running way slow

1. Change the inspection level Current PyCharm versions allows you to change the type of static code analysis it performs, and also features a Power/CPU Saving feature (Click on the icon at the bottom right, next to the lock): 2. Change indexed directories Exclude directories from being indexed which are set in the project paths … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)