DEV Community

Max Myroshnychenko
Max Myroshnychenko

Posted on • Updated on

My pycharm setup

Debugger

  • Check Drop into debugger on failed tests Image description

Then you can use debugger:
Image description

  • Use left panel to go up and down the stack of your functions
  • Click Console to type and debug as if you were inside your functions # Console startup
  • Settings -> Console, uncheck Show console variables by default
  • Settings -> Console-> Python Console:
    • in Starting script, add your database connection:
import sys

print('Python %s on %s' % (sys.version, sys.platform))

sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS])
from can_dj import *
import logging
logging.getLogger("datajoint").setLevel(logging.ERROR)
Enter fullscreen mode Exit fullscreen mode

Disable reader mode

in Editor-> Reader Mode, uncheck Enable reader mode

Top comments (0)