Using Visual Studio for Script Debugging in XtraReports

13 September 2011

We are happy to announce yet another little improvement in the next version of the XtraReports Suite(v2011 vol 2) - the ability to debug report scripts in Visual Studio.

To enable this feature, add the following lines enclosed in the <system.diagnostics> tags to the <configuration> section of the config file of your application (or the web.config file of your ASP.NET application).

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.diagnostics>
    <switches>
      <add name="AllowDebugXtraReportScripts" value="true"/>
    </switches>
  </system.diagnostics>
</configuration>

Then run your application and attach Microsoft Visual Studio to this process.

Attaching to a Process in Visual Studio

How to attach to a process in Microsoft Visual Studio

After calling the CreateDocument() method for your report (e.g. when switching to the Preview tab in an End-User Designer), the corresponding script code is available at Visual Studio runtime, and it is possible to set a breakpoint on it.

Setting a breakpoint at Visual Studio runtime

After finishing debugging your scripts, you may wish to remove all temporary files that are created to provide this functionality. They are located in the following directory: C:\Users\User_Name\AppData\Local\Temp

Removing temporary files  

11 comment(s)
Robert Fuchs

Nice.

And now please supply Intellisense in report scripts.

13 September, 2011
Antonio Terron

"And now please supply Intellisense in report scripts"

+1

13 September, 2011
Mark Bissett 2

"And now please supply Intellisense in report scripts"

+2

13 September, 2011
Carvajal Servicios - Producto Servinte

"And now please supply Intellisense in report scripts"

+3

14 September, 2011
Michael Proctor [DX-Squad]

Well, the debugging feature is greatly appreciated will help diagnose any wayward code customers have in their reports they have designed in thw EUD.

Going to assume that this would work with VS Express as well?

15 September, 2011
George (DevExpress)

@Michael: There should be no problem with using this feature with VS Express.

As for the intellisense support, this is a huge feature and at present we are not sure that we could allocate extra resources to implement it. We apologize for the inconvenience.

19 September, 2011
Tim Kov

And now please supply Intellisense in report scripts

3 October, 2013
S SQUARE SOLUTIONS

"And now please supply Intellisense in report scripts"

13 May, 2014
Willem de Vries

+1 for Intellisense in scripts

12 June, 2014
Juan Luis 1

When active this, open a dialog ask me where is a vb file with a name rare ???

thx

18 December, 2014
Juan Luis 1

When active this, open a dialog ask me where is a vb file with a name rare ???

thx

18 December, 2014

Please login or register to post comments.