我正在尝试调试通过SSH在azure ubuntu vm中运行的asp.net核心应用程序,当我尝试附加到进程时,在Visual Studio 2017中收到此错误消息:
Failed to attach to process: The .NET Debugger (vsdbg) has insufficient privileges to debug this process. To debug this process, vsdbg must be running with root permissions.
我已经授予'vsdbg'读写权限,但是错误仍然存在,如何赋予该进程root权限,以便可以调试应用程序。
答案 0 :(得分:0)
我刚刚解决了这个问题。 在我的情况下,问题出在用户登录。在Linux和VS上,用户名必须相同。我在Linux内部以root用户身份登录,在VS上以其他用户名登录。更改Linux用户后,调试过程将正常启动。