Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET core remote debugging permission issue (vsdbg)

I'm trying to debug asp.net core application running in azure ubuntu vm via SSH and when I try to attach to the process I get this error message in 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.

I've given 'vsdbg' read & write permissions but still the error persists, how can I give this process root permissions, so that, I can debug the application.

like image 312
Ali Avatar asked Oct 28 '25 05:10

Ali


1 Answers

I have just resolve the problem. In my case the problem was with user logged in. On Linux and on VS usernames must be the same. I was logged inside Linux as root and on VS as different username. After change Linux user the debugging process starter normally.

like image 133
Michał Kasperski Avatar answered Oct 29 '25 20:10

Michał Kasperski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!