Troubleshooting |
|
Configure your troubleshooting settings in the PxPlus Web and Debug Mode screen, accessed via the Details Configuration dialogue. You can use the Restart Stalled Tasks setting in conjunction with debug mode and debug windows to test and debug your code.
The Web Server automatically sets the 'NE' system parameter to Off when each of your jobs is completed. With 'NE' set to Off , the Web Server can return values in such system variables and functions as ERR, RET, and MSG(-1) to report untrapped errors in your code.
There are two types of error conditions in dealing with the Web Server:
Type |
Description |
Hard Errors |
Unrecoverable conditions. These are reported to the console. The specific port monitor exits. The base launcher automatically restarts any failed port monitor within 30 seconds of its going down. |
Soft Errors |
Recoverable conditions. These errors are reported to the browser sending the request that generated the error. |
For information on error handling, see PxPlus Web and Debug Mode below. In addition, see %exit_code and Base64 Error Messages.
Prompt |
Web Server Details Configuration |
Restart Stalled Tasks |
On: The port monitor checks for stalled task handlers approximately every 30 seconds, doing the following:
Long jobs are acceptable if they respond periodically. |
Debug Mode |
On: The Web Server displays any PxPlus debug windows you have selected just before your PxPlus application runs. The task handler will automatically stop on the first line of your code so that you can debug the program if necessary. (No ESCAPE is necessary in your code.) After your task handler exits, only the Trace and Watch windows remain open. Any other debug windows you selected are closed automatically. Note: |
Trace Window |
Note:
|