Siebel Object Interfaces Reference > Siebel Programming Tools > The Siebel Debugger >

Checking Syntax


The debugger includes a syntax checker to make sure that your script compiles properly. (It is your responsibility to see that the script does what you want it to.)

To check the syntax of your script

  1. Click the Check Syntax button, or choose Debug > Check Syntax.
  2. 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.

  3. Click Go to Line.
  4. The cursor falls on the line of the script containing the error, with the line highlighted.

  5. Correct the code and check the syntax again.
  6. If the syntax of the line you changed is now correct, the message box displays the next error, if any.

  7. Repeat Step 2 and Step 3 until you see no more messages.
  8. Choose File > Save to save your file, and close the Siebel application.
  9. Press F7 to compile the SRF file.
  10. 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.


 Siebel Object Interfaces Reference 
 Published: 18 June 2003