Check out this great post by Ed Glas for a lot of valuable information for debugging web tests: http://blogs.msdn.com/edglas/archive/2007/12/02/web-test-authoring-and-debugging-techniques-for-vs-2008.aspx