Erwin's Blog

Developing with .NET

Browse by Tags

All Tags » Debugging (RSS)
How to catch and re-throw exceptions
There are two ways to catch and re-throw an exception, below the two code snippets: Snippet #1: 1: try 2: { 3:   4: } 5: catch (Exception ex) 6: { 7: throw ex; 8: } .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas...
Posted: Nov 09 2010, 07:58 PM by erwin21 | with 5 comment(s)
Filed under: , , ,
How to get detailed connection logging info in .NET
Sometimes when you connect to an external host and you get for example the error “The request was aborted: Could not create SSL/TLS secure channel”, you want to have more detailed info about what causes the error. .NET has a build in diagnostics meganism...
Ajax.NET debugging
Most people use alert() to debug their JavaScript, but the Microsoft Ajax Library has a better alterative Sys.Debug . Sys.Debug has some methods for logging messages to the browser console. Like this: To log a message: Sys.Debug.trace(“Log to the console...
More Posts