Files
website-v2/pycharm_debugger.py

9 lines
325 B
Python

def set_trace():
import pydevd_pycharm
# this ip address is for the gateway IP, equivalent to host.docker.internal which
# isn't available on all platforms
gateway_ip = "172.17.0.1"
# Use the same port number configured in PyCharm
pydevd_pycharm.settrace(host=gateway_ip, port=12345, suspend=False)