Skip to content
Search

Pydevd-pycharm

lastmod 2024-09-03created 2024-06-124 edits

PyCharm Debugger (used in PyCharm and PyDev)

Usage

Install the package:

pip install pydevd-pycharm~=241.18034.82

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.

See also

Favorite site

author Zer0 sitemap