Reputation: 5177
I have some legacy Web Services written in C# ASP.NET. There is a specific object in a library used by the Web Service that I need to inspect. Setting a breakpoint in the web service doesn't do anything.
This is made harder by the fact that the code is so horrendous that the entry point to the Web Service callout is not obvious.
Upvotes: 1
Views: 6817
Reputation: 3800
You might try putting a line in where you want it to stop using System.Diagnostics.Debugger.Break() or System.Diagnostics.Debugger.Launch().
Upvotes: 1
Reputation: 48516
If you're running some website that uses the web service, you can manually attach the debugger to the web service process as well as the website, using Debug - Attach Process...
Upvotes: 0
Reputation: 5500
Here are some reasons your breakpoint might not be working:
Upvotes: 3
Reputation: 26812
Are you running the build using debugging? I think ASP.net doesn't run using debugging by default.
Upvotes: 0