Hello,
you must run your Visual Studio as Admin, then your code will run as Admin in Debugger too.
Regards, Guido
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello everyone !
I am working on a program using visual studio 2022 for a remote linux machine ( a raspberry pi ). Everything seem to be working fine but i now need to launch the program as administrator to access some fonctionalities .
So my question is : How can i tell the visual studio debugger to launch as sudo on my remote machine ?
Hello,
you must run your Visual Studio as Admin, then your code will run as Admin in Debugger too.
Regards, Guido
Hello ! I am still looking for a solution to this problem. Anybody can help ?
Check this article: https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging?view=vs-2022
In chapter "Configure the remote debugger":
"If you need to add permissions for other users to connect to the remote debugger, choose Tools > Permissions. You must have administrator privileges to grant or deny permissions.
Important
You can run the remote debugger under a user account that differs from the user account you are using on the Visual Studio computer, but you must add the different user account to the remote debugger's permissions."
HTH.
Regards, Guido