Adding IIS UrlRewrite seems to break debugging on local IIS server

前端 未结 6 720
耶瑟儿~
耶瑟儿~ 2021-02-04 11:25

This issue is driving me insane: I was working on a recently created project and suddenly I was unable to debug that specific project.

I\'m using a local IIS 7.5 with t

6条回答
  •  甜味超标
    2021-02-04 11:53

    I had a similar problem using VS 2010, IIS 7, and URLRewriter 2 and found a workaround - though hopefully someone will post a real solution for you.

    You can attach the debugger to the IIS process and debug as follows: 1. In Visual Studio, click Debug > Start without debugging 2. Set a breakpoint 3. Click Debug > Attach to Process.
    3. Check the "Show processes in all sessions" checkbox. 4. Highlight w3wp.exe (the iis worker process) and click "Attach" 5. In your browser, go to the url that will cause your breakpoint to be hit 6. In Visual Studio, the code should be paused at your breakpoint and you can step through as usual.

提交回复
热议问题