Blogs

DevExpress Reporting Blog

Using Visual Studio for Script Debugging in XtraReports

     

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  

Published Sep 13 2011, 02:43 AM by George (DevExpress)
Bookmark and Share

Comments

 

Robert Fuchs said:

Nice.

And now please supply Intellisense in report scripts.

September 13, 2011 11:22 AM
 

Antonio Terron said:

"And now please supply Intellisense in report scripts"

+1

September 13, 2011 12:19 PM
 

Mark Bissett 2 said:

"And now please supply Intellisense in report scripts"

+2

September 13, 2011 1:46 PM
 

Luis Abreu Acevedo said:

"And now please supply Intellisense in report scripts"

+3

September 14, 2011 8:00 AM
 

Michael Proctor [DX-Squad] said:

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?

September 15, 2011 6:04 AM
 

George (DevExpress) said:

@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.

September 19, 2011 7:08 AM

About George (DevExpress)

Joined Developer Express on April 4, 2008
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.