Pydevd-pycharm
lastmod 2024-09-03created 2024-06-124 edits
PyCharm Debugger (used in PyCharm and PyDev)
Usage
Install the package:
Add the following at the top of the code to debug:
import pydevd_pycharm
pydevd_pycharm.settrace('localhost', port=$SERVER_PORT, stdoutToServer=True, stderrToServer=True)
In the PyCharm top menu, click Run > Edit Configuration, add a "Python Debug Server", and enter the server's IP and port number.