Debugging in pyCharm with sudo privileges?

前端 未结 9 606
粉色の甜心
粉色の甜心 2020-12-31 04:27

I\'ve tested code that requires root access in pyCharm by running sudo pycharm.sh but this is not the way I would recommend of doing so.

I

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-31 04:44

    In PyCharm new version, it has a configure to run Python interpreter in root, no need workaround. See picture below. Check to checkbox: Execute code using this interpreter with root privileges via sudo

提交回复
热议问题