VS2017 Linux跨平台sudo问题。 [英] VS2017 Linux cross platform sudo question.

查看:201
本文介绍了VS2017 Linux跨平台sudo问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows PC上使用VS2017并试图在Linux机器上进行调试。我的应用程序需要以更高的权限运行,那么如何告诉调试器使用我的应用程序运行sudo?

Hi, I'm using VS2017 on my Windows PC and trying to debug on a Linux machine. My app needs to run with higher permissions so how do I tell the debugger to run sudo with my application?

非常感谢。

最好的问候,

黄。

推荐答案

我担心Visual Studio调试器无权访问Linux的安全模型。

I'm afraid Visual Studio debugger has no authority to access the security model of Linux.

但作为解决方法,您可以尝试使您的应用始终以root身份运行,您可以参考此主题下的答案:

but as a workaround you may try to make your app always run as root, you could refer to the answer under this thread:

https: //askubuntu.com/questions/118822/how-to-launch-application-as-root-from-unity-launcher

希望有所帮助。

 

问候,

Fletcher

Fletcher


这篇关于VS2017 Linux跨平台sudo问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆