When I created a class for my web app project it suggested I move the class to the App_Data folder, which I did. Only problem is now, I can debug through my backend code that's not in that folder but any classes I want to debug into, I'm not able to and the debugger will simply skip over it. I've looked all over for the reason but have found mostly
web.config files setup incorrectly or Client framework rather than .net framework.
I have confirmed both are fine in my system, and that the project was built under Debug mode. I'm using the built in web debugger, not using IIS yet but I've tried attaching the debugger to the web service within VS08.
Below is my
web.config relating to debugging:
<system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <providerOption name="CompilerVersion" value="v3.5"/> <providerOption name="WarnAsError" value="false"/> </compiler> </compilers> </system.codedom>
No need to set system.codedom (I'd remove that unless you have another reason for specifying the information there), but all you'll need is:
<configuration> ... <system.web> <compilation debug="true" ... > ... </compilation> </system.web> </configuration>
Note the debug="true". Attach debugger to running process or just start up with f5.