goland如何以root方式debug

578 阅读1分钟

背景

ubuntu 22系统,已配置好go及goland环境

具体操作

选择Run/Debug Configurations:

image.png 勾选 Run with sudo:

image.png

Apply.