Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

131 Posts in 47 Topics- by 43 Members - Latest Member: Sherry Lammott

September 10, 2010, 06:35:26 am
Coding Conditioning ProceduresCoding Tips & TricksDebug Procedure
Pages: [1]
Print
Author Topic: Debug Procedure  (Read 243 times)
M Winzenburg
Guest
« on: May 06, 2010, 08:15:50 am »

Here is a handy debug procedure for locating errors in your Medstate Notation programs:

1) Exclude all programs from compilation, then add them back in one at a time and translate and compile. When the error message reappears, you know which program is causing the problem.
2) Edit the program with the problem and comment out all but one of the simplest State Sets.
3) Recompile the program and make sure that the error message does not reappear.
4) Start uncommenting the State Sets one at a time and recompiling until the error message reappears.
5) Now you know which State Set is causing the problem. There may be more than one State Set with the same type of problem.
6) You can narrow down where the problem is in the State Set even further by commenting out each State and then uncommenting them one at a time until the problem reoccurs. Again there may be more than one State with a similar problem.

Once you know which State(s) is causing the problem, you can then focus on just that portion of the code and fix the problem.
Logged
Pages: [1]
Print
Jump to: