How to set a breakpoint in a deployed ASPX file

I have some ASPX files deployed on a test machine with IIS7 and Visual Studio 2008.

Now I have connected to w3wp process with VS2008 and open one ASPX file. The ASP file has some inline code like

<% DoSomthing() %>

      

I move the cursor to this line and press F9, but the status bar displays "This is not a valid breakpoint location." I have set below in web.config file.

<compilation defaultLanguage="c#" debug="true">

      

So how do I set a breakpoint for an expanded aspx file?

0


a source to share


1 answer


You must have at least the same source code that was removed on the IIS server, attach a debugger to your local machine (test), connect to the database that is used by the IIS application, and simulate the error. You shouldn't have any problems. good luck.



0


a source







All Articles