Debug Procedure

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #12588
    Med_Support
    Moderator
    M Winzenburg

    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.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.