Export (0) Print
Expand All

Debugging Data Processing Extension Code

SQL Server 2000

Microsoft® .NET Framework provides several debugging tools that can help you analyze your data processing extension code and locate errors in it. The tool that works best will depend on what you are trying to accomplish. For the purpose of this topic, the debugging tool of choice is Visual Studio .NET 2003.

To debug your data processing extension code

  1. Launch Visual Studio .NET 2003, and open your data processing extension project.
  2. Build the project, and deploy your data processing extension assembly and the accompanying .pdb file to the Report Designer. For more information about deployment, see Deploying a Data Processing Extension to Report Designer.
  3. Open a new Report Project in Visual Studio while leaving your data processing extension code open in a separate window of Visual Studio.
  4. Navigate to the window of Visual Studio that contains your data processing extension project and set some break points in your code.
  5. With the data processing extension project window still active, click Process on the Debug menu.

    The Processes dialog opens.

  6. From the list of processes, select the devenv.exe process that corresponds to your Report Project and click Attach. When the Attach to Process dialog opens, make sure that the program types Common Language Runtime and Native are selected, and then click OK.
  7. Define your report data source using the Data tab of the Report Project. You will most likely use the Generic Query Designer to execute a query against your custom data source. This should invoke the debugger and execute code corresponding to your break points.
  8. Step through your code using the F11 key. For more information about using Visual Studio for debugging, see your Visual Studio .NET documentation.
See Also

Deploying a Data Processing Extension

Extending Reporting Services

Implementing a Data Processing Extension

Reporting Services Extension Library

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft