Using Siebel Tools > Siebel Script Editors > Using the Siebel Debugger >
The debugger includes a syntax checker to make sure that your script compiles properly.
To check the syntax of your script
- Click the Check Syntax button, or choose Debug > Check Syntax.
Siebel Tools does a test compile. If you have made no errors, you get no response. If there are errors in your script, a message box appears describing the error. The message box has two buttons: Next Error and Go to Line. If there is more than one error, it is best to handle them one at a time.
- Click Go to Line.
The cursor is displayed on the line of the script containing the error, with the line highlighted.
- Correct the code and check the syntax again.
If the syntax of the line you changed is now correct, the message box displays the next error, if any.
- Repeat Step 2 and Step 3 until you see no more messages.
- Choose File > Save to save your file, and close the Siebel application.
- Press F7 to compile the SRF file.
- When the compilation finishes, click Run or press F5 to restart the application.
CAUTION: The Check Syntax function checks only for syntax errors and errors that stem from failure to properly initialize objects or variables. It does not check other types of errors, and cannot trap errors in logic that may cause run-time errors.
At this point, your script should run. Test it to see if it gives you the desired results. The following sections describe debugging tools to help you accomplish that end.
CAUTION: The Check Syntax command checks only the script in the active object definition. If there are errors in other scripts, you are not able to compile the SRF file.