Skip to main content
Administrator Guide
Last Updated: 2023-06-23
Debug JavaScript in Report Designs

Debug JavaScript in Report Designs

Create a report design containing JavaScript.
Before you can use Eclipse's debugging tools with JavaScript that's part of a report design, you need to perform some extra steps.
  1. In the
    Script
    view, place a breakpoint on the line that you're interested in debugging. To do so, double-click the margin to the left of the script.
  2. In the
    Navigator
    view, right-click the
    .rptdesign
    file, then select
    Debug As
    Debug Configurations...
    .
  3. In the left navigation pane of the
    Debug Configurations
    dialog box, select
    Report
    , then click
    New
    in the toolbar.
  4. In the
    Output
    section, select
    PDF
    from the
    Format
    drop-down list. Then select the
    Open generated file when finished
    check box.
  5. Click
    Apply
    , then click
    Debug
    .
  6. Select
    Window
    Open Perspective
    Other
    and open the
    Debug
    perspective.
  7. Debug using the standard Eclipse debugging tools.
    Right-clicking the report design, then selecting
    Report
    Debug Report
    uses default settings only, and attempts to print to an HTML file without displaying the output. Don't use this option.