Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 418
  • Last Modified:

Break point inside web service code ?

How do I set a break point inside the code for a web service call.

I set the break point inside the file with the c# code for a webservice
in VS 2005.

The debugger did break on breakpoints set in the javascript. The javascript
calls a web service, but the break point in the service did not work.

How do I set it ?
1 Solution
I had a little trouble with that as well. Here is how I got it to work.
1. You have to set the breakpoint BEFORE you run with debugging. You can't set it when you are running and expect it to get hit.
2. Set a javacript breakpoint at the call. When you hit that single step into the web service. Then you can run again and it will hit the breakpoint.
3. Oddly enough after I did that a couple times I could remove the javascript breakpoint and it went ahead and hit the webservice breakpoint so I could eliminate the single step. Go figure. :)

Featured Post

When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now