D
Darren Mar-Elia \(MVP\)
So, I have my little .Net 2.0 C# utilities out in the wild and occasionally
they have bugs(!). Often the bugs are easy to troubleshoot remotely but
occasionally I would like to write detailed trace info to a simple text file
that I could use to further track down the bugs. Additionally, somewhat
related, it would be useful to be able to get the line number where an
exception was thrown, which is slightly different than a debug log, but
useful nonetheless. For the first part of this--the debug log--what is the
best method to do this? Any artices or samples that anyone can point me to?
Secondly, how can I pass the line number of the code into an exception that
would help me track down where the exception was thrown.
Thanks!
Darren
--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
http://www.gpoguy.com -- The Windows Group Policy Information Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
Group Policy Management solutions at http://www.sdmsoftware.com
they have bugs(!). Often the bugs are easy to troubleshoot remotely but
occasionally I would like to write detailed trace info to a simple text file
that I could use to further track down the bugs. Additionally, somewhat
related, it would be useful to be able to get the line number where an
exception was thrown, which is slightly different than a debug log, but
useful nonetheless. For the first part of this--the debug log--what is the
best method to do this? Any artices or samples that anyone can point me to?
Secondly, how can I pass the line number of the code into an exception that
would help me track down where the exception was thrown.
Thanks!
Darren
--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
http://www.gpoguy.com -- The Windows Group Policy Information Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
Group Policy Management solutions at http://www.sdmsoftware.com