开发者

How can I set a breakpoint in .NET Framework source code using Visual Studio 2010 Express?

开发者 https://www.devze.com 2023-01-05 17:35 出处:网络
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.

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 o开发者_如何学运维ption for the symbol server is pointless without the option to set a breakpoint.


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();

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号