This article explains you how to debug the client side Javascript code in VisualStudio.
Steps:
Passing Data Between Forms Without Events and Delegates
The ReportViewer control, a local SSRS 2005 Report, and data from a Web Service.