views:

369

answers:

1

I have some ASPX files deployed in test machine which has IIS7 and Visual Studio 2008.

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

<% DoSomthing() %>

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

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

So, how to set breakpoint for a deployed aspx file?

A: 

You should have at least the same source code that was deplayed on the IIS server, attach the debugger to local machine(testing) connect to the database that is used by IIS application, and simulate the bug. You shouldn't have any problems. good luck.

diadiora