Search code examples
c#.netdebuggingazureazure-diagnostics

How to do debug output in Azure roles code?


Suppose I write a console C# application - I can just use Console.WriteLine() to print whatever status messages and they can be read when the program is started in the console.

Now I have a Windows Azure role that runs somewhere in the cloud so that there's no console anymore. How do I do debug output to spot role current state and debug problems using debug output easily?


Solution

  • Sometimes I resort to something really low-tech (but instantaneous instead of waiting for diagnostics to transfer stuff): http://blog.smarx.com/posts/printf-here-in-the-cloud