Wednesday, March 21, 2012

Debugging Web Service/Atlas

Hello,

I'm trying to debug a problem with a biz layer class that gets called from my web service. I rtied doing System.Diagnostic.Debug.writeline but nothing gets written and also tried doing breakpoints but those don't work either. Is there anything I can do to get debug info?

Thanks,

Clank

PS - I don't the search function works for the forums either.

Yeah, debugging Ajax style applications is tough. Basically you have to put a debug line at the start of your web service and make sure it even gets there. If not, start with "alerts" in the JavaScript before your web service is called.

You can attach a debugger to both the server-side and the client-side (provided you unchecked the two relevant checkboxes in IE advanced settings).

You can also use debug.dump and debug.trace from the client-side.

You can also use Nikhil's browser helper to monitor the network traffic and get client-side stack traces:http://www.nikhilk.net/Project.WebDevHelper.aspx

No comments:

Post a Comment