Run a C++ program in Clion as root

前端 未结 5 1990
逝去的感伤
逝去的感伤 2021-02-14 03:38

I\'m trying to run a program written in C++ by using CLion v1.2 as super user. Anyone here knows how to run it as superuser? I\'m using CMake.

5条回答
  •  春和景丽
    2021-02-14 04:17

    If you are asking to run the debugger as sudo/administrator, I had the same issue. On Linux you can open CLion as sudo and gdb will not have root permission issues running an executable:

    sudo ./clion.sh
    

    I would guess that you could right click in Windows and "Run as administrator" to get the same result.

    There is a feature request into JetBrains to run the debugger as root that could use more up voting.

提交回复
热议问题