RunAs A different user when debugging in Visual Studio

后端 未结 7 990
有刺的猬
有刺的猬 2020-11-29 05:21

I\'m trying to run the program I\'m debugging as a different user. Now, this can be done by running the exe and attaching from Visual Studio, but this is cumbersome.

相关标签:
7条回答
  • 2020-11-29 06:26

    I'm using the following method based on @Watki02's answer:

    1. Shift r-click the application to debug
    2. Run as different user
    3. Attach the debugger to the application

    That way you can keep your visual studio instance as your own user whilst debugging from the other.

    0 讨论(0)
提交回复
热议问题