Home > Back-end >  How to debug run a project as a different user in Visual Studio?
How to debug run a project as a different user in Visual Studio?

Time:12-23

I need to debug run a C# project using a different user. I found Launch Profiles

CodePudding user response:

If you mean how to using the approach for a .net core project, here is the steps:

  1. Click the downward arrow in the picture and choose "<project> Debug Properties".

Step1

  1. In the dialog click the first button and choose "Executable".

Step2

  1. Input the executable and arguments.

  2. Select the new profile (in the first picture) and start debugging.

  3. Note that with this approach you still need attach to the process, see the comments in this answer: https://stackoverflow.com/a/1287221/6196568

  • Related