DevelopMENTAL Madness

Friday, April 25, 2008

Debugging Custom Report Item controls for Sql Server Reporting Services

When you are developing a control which inherits from CustomReportItem for Sql Server Reporting Services (SSRS) you will certainly want to debug your code. The documentation is shoddy and at best incomplete, and the examples are poorly explained. So being able to debug your control is paramount to your success.

The way to setup debugging follow these steps:

  1. Open the project properties for your custom report item (right click project - Properties...)
  2. Set debug properties (Click "Debug" tab on the left)
  3. Set start action (under start action click "Start External Program")
  4. Browse for DevEnv.exe (C:Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe)
  5. Set command line arguments (enter the path to your test solution - a reporting services project)
  6. Save your property changes

Labels: , , , ,

Links to this post:

Create a Link

<< Home