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:
- Start WebSpeed Workshop from the AppBuilder or using its URL.
- Click on "File Tools"
- Select the .html file to be compiled.
- Click the Compile icon in the toolbar (looks like a jigsaw puzzle)
- 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.
- Click on Scripting Lab.
- In the "Language" options, click on "SpeedScript" if it is not already selected.
- 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.
- 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.