| title | Debug delivery extension code | |||
|---|---|---|---|---|
| description | Discover how to use Microsoft .NET Framework debugging tools to analyze your delivery extension code and locate errors in it. | |||
| ms.date | 09/25/2024 | |||
| ms.service | reporting-services | |||
| ms.subservice | extensions | |||
| ms.topic | reference | |||
| ms.custom |
|
|||
| helpviewer_keywords |
|
The [!INCLUDEmsCoName] [!INCLUDEdnprdnshort] provides several debugging tools that can help you analyze your delivery extension code and locate errors in it. The tool that works best depends on what you are trying to accomplish. This example uses [!INCLUDEvsprvs2008].
-
Launch [!INCLUDEvsprvs2008] and open your delivery extension project.
-
Build the project and deploy your delivery extension assembly and the accompanying .pdb file to the report server and Report Manager. For more information about deployment, see Deploy a delivery extension.
-
If you wrote a subscription user interface to extend Report Manager, open Internet Explorer and navigate to Report Manager while leaving your delivery extension code open in [!INCLUDEvsprvs]. If you don't have a subscription user interface deployed for Report Manager, open the client application from which you call your delivery extension using the SOAP API.
-
Navigate to [!INCLUDEvsprvs] and your delivery extension project, and set some break points in your code.
-
With the delivery extension project still the active window, select Attach to Process on the Debug menu.
The Attach to Process dialog opens.
-
From the list of processes, select the aspnet_wp.exe process (or w3wp.exe if your application is deployed on IIS 6.0), and select Attach.
-
Define a new subscription using your delivery extension. For this step, you likely use Report Manager or the SOAP API. This action should invoke the debugger and execute code corresponding to your break points.
-
Step through your code using the F11 key. For more information about using [!INCLUDEvsprvs] for debugging, see your [!INCLUDEvsprvs] documentation.