How to debug two web applications/services on IIS from within Visual Studio?

后端 未结 2 796
闹比i
闹比i 2021-02-02 12:19

In Visual Studio 2010, I want to debug two web applications running on IIS at the same time. When debugging the first application it is ok. But when starting to debug the secon

2条回答
  •  死守一世寂寞
    2021-02-02 12:41

    A windows process can only have one debugger attached to it at a given time. If you get that message it means that you're attempting to debug the same process twice which won't work. But that also means you should be able to debug both web applications in the instance of Visual Studio that's already attached. It may require a few extra steps though to get it to acknowledge the other code

    • Disable "Just My Code" (Tools -> Options -> Debugger, uncheck "Enable Just My Code"
    • You may need to manually load symbols for the other web application through the modules window (Debugger -> Windows -> Modules)

    After that though (second step may not be necessary) you should be able to set break points in both web applications and otherwise debug them.

提交回复
热议问题