Performance Testing Cloud Hosted Applications

  Building while flying Performance testing in the cloud can be quite challenging, the best video I have seen so far was one that our test architect Dennis Bass used to show to people asking about what testing in the cloud is like (I am also borrowing a lot of content from him) https://www.youtube.com/watch?v=L2zqTYgcpfg The…

3

Windbg – Breaking on specific CLR exception

  I get this question quite frequently, “I know how to break on all CLR exceptions, but how do I break on a specific exception, e.g. I want to see only Sql Exceptions?”  It  is actually quite easy to do in WinDbg using the soe (StopOnException) command found in sos.dll StopOnException [-derived] [-create | -create2] <Exception> <Pseudo-register number> Causes…

0

Windbg QuickStart guide (Part 4 – Debugging unexpected program behavior)

First Chance Exceptions  Let’s assume I have written some really ugly code like what you see here: 1:  int i = 0;  2:  try  3:  {  4:      i = int.Parse(args[0]);  5:  }  6:  catch  7:  {  8:      Console.WriteLine(“Invalid Argument”);  9:  }  10: Console.WriteLine(i);    When the user executes the program with invalid arguments, all he…

4

Breaking on Module Load

  Let’s say we want to break the debugger when a specific dll is loaded, for example I want to enable some SOS commands and clr hasn’t been loaded yet, this is especially useful when you have an exception that happens too early in the program and you can’t rely on manually trying to break…

1

Windbg QuickStart guide (Part 3 – Crashes)

The approach you will take for debugging crashes is very similar between looking at the live process vs looking at a crash dump, there are some small differences that I will talk about in this post.  The first question: What is wrong? If the program is throwing an exception and exiting  If the program has…

0

Error loading sos.dll

Many times you get this error when you do .load sos 0:080> .load sos The call to LoadLibrary(sos) failed, Win32 error 0n2“The system cannot find the file specified.”Please check your debugger configuration and/or network access.You can solve this by doing .loadby sos clr, this means you are trying to load sos.dll from the same location you…

1

Windbg QuickStart guide (Part 2 – hangs)

  In part1 we have discussed the steps you need to get ready to start debugging with windbg, in this part we will walk through some steps and commands that might help you troubleshoot a specific problem The first question is what are you trying to debug? Troubleshooting a hang   a.     The first step is to…

2

Windbg QuickStart guide (Part 1)

  The purpose of this post is basically to give people a quick start guide to windbg, over the next few posts I will add more details on specific problems, so you can go directly to the steps to debug your specific problem, hope you find it helpful!   Part 1: Before you start  …

0