Issue
Use of the Plain English programming environment and general Plain English programming is covered in the Training courses, what other techniques can be used to debug a program.
Product Line
Andover Continuum
Environment
Plain English Integrated Development Environment
Cause
Often additional techniques are required to debug Plain English, especially when attempting to analyze, modify or fault find other peoples code.
Resolution
Some techniques you can use for debugging your program and isolate problems are:
- Add in additional line labels to the program to isolate where the program is disabling or failing, if it disables you will be able to see the "CurrentLine" it has failed on and therefore know which line of code is causing the problem.
- Even if a program does not disable you can use the "Stop" keyword in the program it will act as a break in the code and you can look at the values of the various variables, that should tell you what value could be at 0.
- Use the Watch window to show the values of the various objects, when used with the above 2 techniques it allows you to accurately trace a program flow.
- Temporarily create local variables as actual points and comment them out from the assignment at the top of the program, this allows you to use the Watch window to see the points values. Revert them back to local objects when debugging is complete.
- Ensure none of the Program size limitations as defined in Plain English program limitations on number of characters in program and line labels are exceeded.