Skip to content

Pydevd-pycharm

PyCharm Debugger (used in PyCharm and PyDev)

Usage

패키지 설치:

pip install pydevd-pycharm~=241.18034.82

디버깅할 코드 상단에 다음을 추가:

import pydevd_pycharm
pydevd_pycharm.settrace('localhost', port=$SERVER_PORT, stdoutToServer=True, stderrToServer=True)

PyCharm 상단 메뉴에서 Run > Edit Configuration 클릭 후 "Python Debug Server" 를 추가하고 서버의 ip와 port번호를 입력하면 된다.

See also

Favorite site