The typical task flow for testing and debugging scripts can be described with the following list:
1. Compile the object definition.
2. Set breakpoints.
3. Run the Siebel application in debug mode.
4. Invoke the script code from the application.
5. Use the Watch window to verify script operations.
6. In the case of errors, correct the code and save the script.
7. Continue from step 4 and repeat until script executes without errors.
8. Compile the object definition.
Once we have finished the code implementation in the script editor, we must save our work and compile the parent object definition. In the case of our code example, we must compile the new business service named AHA Info Service.
Assuming that we have already defined the Debug settings in the Siebel Tools options dialog (as described in Chapter 2), we can now set breakpoints in our code in order to prepare it for debugging. To accomplish this we set the cursor...