How to debug an .ashx file | The ASP.NET Forums
How to debug an .ashx file | The ASP.NET Forums: "using
System.Diagnostics;
at the top.
And at the point where one needs to see the variable value say filename(whose value is set at runtime) you have to add
Debugger.Break();String filename=GetFileNm(); // method GetfileNm() returns the value of FileName.
String filename=GetFileNm(); // method GetfileNm() returns the value of FileName.
Debug.Write(filename);
That's All.
For reference see: http://www.15seconds.com/Issue/060406.htm
"
'via Blog this'
System.Diagnostics;
at the top.
And at the point where one needs to see the variable value say filename(whose value is set at runtime) you have to add
Debugger.Break();String filename=GetFileNm(); // method GetfileNm() returns the value of FileName.
String filename=GetFileNm(); // method GetfileNm() returns the value of FileName.
Debug.Write(filename);
That's All.
For reference see: http://www.15seconds.com/Issue/060406.htm
"
'via Blog this'
留言
張貼留言