Thursday, January 12, 2012
Breakpoints in REST WCF Service
I have a project in Visual Studio 2010 that I am using to develop some REST WCF services. Everything was working, but for some reason my breakpoints were not getting called. I could tell the code was executing because the correct JSON was getting returned, but Visual Studio was not stopping on the breakpoint. It turns out that all I needed to do was go to the project properties, click on the Web tab, then check the ASP.NET debugger. After that, the breakpoints were working as expected. It is much easier to develop a web service if you can debug it.