开发者

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

开发者 https://www.devze.com 2022-12-19 00:25 出处:网络
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

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

精彩评论

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