Table of Contents

Model Debugging in SAMM

Sometimes when you are evaluating your model in SAMM the process is taking a very long time or the results that are produced are incorrect or not what you were expecting. Fortunately TOOL has a number of debugging options available that allow yo tou see which tools are currently be evaluated, display intermediary data and even ignore errors.

SAMM Preferences

To access the debugging options in SAMM:

  1. Selecting the Preferences option in the File menu. This displays the Preferences window.
  2. Click on the TOOL tab.

The debugging options are found in the options group as seen in the image above

displayOutObj :
  table

OR

displayOutObj :
  graph

Note that each of these options can be used alone or in combination with one another depending on your requirements.

TOOL Code

You can also programatically incorporate debugging features in your Documeter code. This method is more flexible than setting the SAMM Preferences as you can pick and choose what code you want to debug. However you need to remember to when using this method you need to re-load any calculators that you have modified beck into SAMM.

single step and display output objects

You can activate the single step and display output objects debug features in your Documenter code by adding the following lines of code around the section you are interested in debugging.

$singleStep = on
$displayOutObj = on
  start of buggy code
  .
  .
  .
  end of buggy code
$singleStep = off
$displayOutObj = off

Note:

seeshape, table and display

There are also a number of tools that are useful for debugging your model.

Remember once you change the code in Documenter you will need to re-load the calculator into SAMM