This is a migrated thread and some comments may be shown as answers.

How to debug Telerik Reports?

4 Answers 1042 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 01 Sep 2009, 04:49 PM
I must be missing something...  I create a web project and add my Telerik class library and set a breakpoint on my Telerik test report contructor.  I run my project and can debug as normal but it never steps into the report. 

Is there documentation on this somewhere or am I just missing something?


R

4 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 02 Sep 2009, 01:36 PM
Hi Robert Gayo,

Each Telerik Report is just an ordinary class that you can debug the same way you can debug any other class from your project. Just create a new instance of the report in code and the debugger will hit the breakpoint in the constructor. You can also add a report viewer to your web page, specify a report for it, and the report constructor will be called as soon as you try to preview this report in the page. If you have a certain issue when debugging your reports, could you be more specific about the exact conditions so we can provide more assistance to you?

Sincerely yours,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Robert
Top achievements
Rank 1
answered on 02 Sep 2009, 02:00 PM
This only works if I create a report and have it within the web project app_code folder. This is not as defined in your best practices.

I need to debug within the class library which is attached to the web project.  How can I step through this report within the class library when I run my web project?

Robert
0
Ivan
Telerik team
answered on 04 Sep 2009, 02:51 PM
Hello Robert Gayo,

It seems your debugging problem is not related to Telerik Reporting at all. As I said previously, there is nothing special about the report classes generated by the Report Designer which you should be aware of when debugging.

If you are still not convinced try the following experiment:
  1. Open the sample solution that comes with the Telerik Reporting installation in Visual Studio
  2. Add a breakpoint in the constructor of any report from the class library and run the Web Demo in debug mode
  3. Select the report from the menu and the debugger should hit the breakpoint immediately. 
Perhaps there is something wrong with your web site that prevents you from debugging. Check the compiled DLL of your report library inside the BIN folder. If it is not up to date, this might confuse the debugger. Delete the contents of the BIN folder, then add a reference to the report library again and perform a full rebuild of the solution. This should guarantee the web site is using the latest compiled version of the report library. 
 

Sincerely yours,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Naveena
Top achievements
Rank 1
answered on 18 May 2018, 08:37 AM
key =>graph1.NoDataMessage     Value=>:   "There is no data to display for any \r\n See the next page for Pai" +"n, Activity and Sleep Category Scoring" , These are in my RESX file , while localization what ever the special charecter and \n are displaying as same how can i do fix this

Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Robert
Top achievements
Rank 1
Naveena
Top achievements
Rank 1
Share this question
or