Debug code snippets (16)

How to convert Exception to string with stack trace and inner exceptions

Published: 9. March 2014 | Updated: 9. March 2014
Categories: Debug
Tags: C# Debug Formatting Text

How to check that event log exists

Published: 1. February 2012 | Updated: 1. February 2012
Categories: Debug Windows
Tags: C# Debug Windows

How to get stack trace frames

Published: 25. November 2011 | Updated: 25. November 2011
Categories: Debug
Tags: C# Debug

How to step through method in debug mode

Published: 25. November 2011 | Updated: 25. November 2011
Categories: Attributes Debug
Tags: Attributes C# Debug Visual Studio

How to make custom formatting in debugger

Published: 25. November 2011 | Updated: 25. November 2011
Categories: Attributes Debug
Tags: Attributes C# Debug Formatting Visual Studio

How to create conditional method

Published: 26. January 2009 | Updated: 25. November 2011
Categories: Attributes Debug
Tags: Attributes C# Debug Testing

How to write message to EventLog

Published: 13. December 2008 | Updated: 10. November 2011
Categories: Debug Windows
Tags: C# Debug Windows

How to measure time using Stopwatch

Published: 26. September 2011 | Updated: 4. November 2011
Categories: Debug
Tags: Debug Performance

How to enumerate event log entries

Published: 12. January 2009 | Updated: 27. October 2011
Categories: Debug Windows
Tags: C# Debug Windows

How to get current method name

Published: 27. October 2011 | Updated: 27. October 2011
Categories: Debug Reflection
Tags: C# Debug Reflection

How to create breakpoint programmically

Published: 13. December 2008 | Updated: 26. October 2011
Categories: Debug
Tags: C# Debug Visual Studio

How to find out that Visual Studio is attached

Published: 30. September 2011 | Updated: 26. October 2011
Categories: Debug
Tags: C# Debug Visual Studio

How to get class name

Published: 14. October 2011 | Updated: 14. October 2011
Categories: Reflection
Tags: C# Debug Reflection

How to trace to output

Published: 13. December 2008 | Updated: 9. October 2011
Categories: Debug
Tags: C# Debug Visual Studio

How to prevent a member to be visible in debug window

Published: 15. January 2009 | Updated: 15. January 2009
Categories: Attributes Debug
Tags: Attributes C# Debug Visual Studio

How to get calling method

Published: 14. January 2009 | Updated: 14. January 2009
Categories: Debug Reflection
Tags: C# Debug Reflection