Debugging in pyCharm with sudo privileges?

前端 未结 9 598
粉色の甜心
粉色の甜心 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:47

    Create a shell script that does "sudo python" and forwards the arguments, and configure that script as a Python interpreter in PyCharm.

    Name of this shell script should start with python (source: http://forum.jetbrains.com/message/PyCharm-424-3).

提交回复
热议问题