Salesforce

How to generate a debug listing or XREF file in Webspeed Workshop

« Go Back

Information

 
TitleHow to generate a debug listing or XREF file in Webspeed Workshop
URL NameP165129
Article Number000130356
EnvironmentProduct: OpenEdge
Version: 10.x, 11.x
OS: All Supported Operating Systems
Other: Classic WebSpeed
Question/Problem Description
How to generate a debug listing in Webspeed Workshop
How to create a debug listing for an unstructured SpeedScript file (.htm or .html)?
How to compile with the DEBUG-LIST option in WebSpeed workshop?
How to use COMPILE DEBUG-LIST to get line numbers for WebSpeed code?
How to get the correct line numbers for embedded SpeedScript code?
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
An unstructured SpeedScript file contains a mixture of ABL/4GL code and HTML tags known as "embedded SpeedScript". The ABL COMPILE statement cannot process the HTML in embedded SpeedScript.
Therefore, when a debug listing is needed in order to locate lines of code specified in error messages, It is necessary to generate a .w file from the embedded SpeedScript. This can then be compiled with the DEBUG-LIST option or other compiler options.

As example, use the following steps to generate the .w file and the debug-list:
  1. Start WebSpeed Workshop from the AppBuilder or using its URL.
  2. Click on  "File Tools"
  3. Select the .html file to be compiled.
  4. Click the Compile icon in the toolbar (looks like a jigsaw puzzle)
  5. A new web page will be displayed indicating that a SpeedScript file has been generated. Click the Save icon to save the temporary file (i. e. the .w file) to the current directory.
  6. Click on Scripting Lab.
  7. In the "Language" options, click on "SpeedScript" if it is not already selected.
  8. Enter the statement "COMPILE MyCode.w DEBUG-LIST MyCode.dbl." into the Scripting Lab text editor. Substitute the name of the .w file saved in step 5 for "MyCode.w", and the desired name of the debug listing file for "MyCode.dbl". Include the full path in double quotes if either file is not in the WebSpeed broker's work directory.
  9. Click the "Run Script" button. No output will be generated on the web page, but "MyCode.dbl" will be generated in the specified directory.
To use the other compiler options (XREF/XREF-XML, STRING-XREF etc.), include them in the COMPILE statement in step 8.
Workaround
Notes
References to Other Documentation:

OpenEdge Development: ABL Reference, "ABL Syntax Reference > COMPILE statement"
OpenEdge Getting Started: WebSpeed Essentials, Chapter 3, "Tools and ABL Support > WebTools"
Keyword Phrase
Last Modified Date11/23/2016 4:09 PM

Powered by