Tag Archives: trace

Use Debug and Trace listeners in C#

By default, the Debug and Trace classes send messages to the Console window. Sometimes it might be nice to capture that text and save it in a file. This example shows how you can do that. The Debug and Trace … Continue reading

Posted in debugging | Tagged , , , , , , , , , , , | Leave a comment

Get the executing method name in C#

This example shows how you can get the method name for the currently executing method. Normally you don’t need to get that name (you can just look at the code you’re typing), but sometimes it’s useful for standard tracing and … Continue reading

Posted in debugging, Uncategorized | Tagged , , , , , , , , , | Leave a comment