how to debug application as root in eclipse in Ubuntu?

后端 未结 8 1265

I\'m programming application using libpcap. when I debug the application in normal mode, pcap cannot get the network device. it seems that I have to debug the application in

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-07 16:27

    Launch Eclipse with sudo (just for completeness: http://www.eclipse.org/forums/index.php?t=msg&goto=516838&)

    Update: Follow xmoex solution. If you run Eclipse as root (ie. using sudo) your files will be root-owned... which you probably don't want.

提交回复
热议问题