Debugger - User Guide
Debugger
The debugger is a diagnostic tool that allows pausing during a run and displaying current model values. It has been developed to aid modelers in comprehending the Environmental Flow node/manager and Resource Assessment internals. However, its utility extends to all aspects of Source, offering modelers an understanding of what is happening with their scenarios and projects at different time steps and phases.
Using Debugger in Source
Select Edit>>Applications Settings>>Experimental Features to enable Debugger.
Once Debugger is enabled, you can view Debug Tool in your Source Interface Screen as below:
Once you run the model, you can click Debug to visualize results for various modelled elements. Clicking on Debug Tool presents you with a screen below:
Here, you can set up different break points by clicking on Add a new break point Tab, as shown below. You can select from a range of Simulation Phases (such as Pre-initialisation, Initialisation, Start of Run, Run and End or Run), Time Step Dates and Different Time Step Phases (Start of Time-step, Resource Assessment, Environmental Flow, Ordering, Flow, End of Time-step and After Time-step).
Once you define the break point, you can choose the model elements you are interested in exploring by clicking on Add New Item, which will present you with a Modelled Element Selector Screen as shown below. Here, you can select the model element you want to visualize (one at a time) and Click OK.
Once you select the model elements you want to visualize, then you can click on Start the simulation (F5) as shown below:
Then, you can view the Values for different model components at appropriate break points (various Time Steps and Time Step Phases).