3

I need to set a breakpoint in System.Web.Handlers.ScriptModule.OnPostAcquireRequestState and then step into some of the System.Web.Script.Services.WebServiceData methods.

But I only have Visual Web Developer 2010 Express (or other Express SKUs). I have configured the Microsoft Symbol Server and unchecked the Just My Code option. I can see that the symbols for System.Web.Extensions are downloaded and cached.

However, this version of Visual Studio doesn't have the breakpoints window, so I don't see a good way to set the breakpoint.

Am I just out of luck or is there another way to set a breakpoint in this method? It seems the option for the symbol server is pointless without the option to set a breakpoint.

Michiel van Oosterhout
  • 22,839
  • 15
  • 90
  • 132

1 Answers1

-5

paste this line in your code, after the line where you want to get debug info. Haven't tried it but should work. System.Diagnostics.Debugger.Break();

GDP
  • 8,109
  • 6
  • 45
  • 82
Liufa
  • 7
  • 1
    @LightnessRacesinOrbit The question states that the breakpoint is required in `System.Web.Handlers.ScriptModule.OnPostAcquireRequestState` - a system area, not their own code, so a code amendment is not possible. I have not personally downvoted, bit harsh on a new user. – Orbling Nov 22 '12 at 15:18
  • @LightnessRacesinOrbit post appears in [Late Answers](http://stackoverflow.com/review/late-answers) (and maybe in Low Quality) review queue and words **"Haven't tried it"** likely trigger negative feedback strong enough for downvoters to come over -1 penalty for answers (I didn't DV for the record) – gnat Nov 22 '12 at 15:19
  • I'll upvote this. Yes it may not be possible with .net framework code as OP, but while I use this for concept with JavaScript, I didn't think it was available for c#. – Phil Cooper Aug 18 '13 at 14:17