开发者

System.diagnostics and System.Debug not working from Page Method

We have a Page Method on a web page using ASP .Net. We tried to put in a trace statement using both System.Diagnostics and System.Diagnostics.Debug. In Visual Studio 2008, the break point is not even hit for the line, but other break points on other lines are hit.

There is no output from either method that we can see.

There is also a Global.asax error catcher that works fine in other cases, but in the Page Method is not being catched.

Any ideas why a Page Meth开发者_C百科od and System.Diagnostics do not play well together?


try using System.Diagnostics.Debugger.Log(0, null, "MessageString");

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜