PerceptiLabs provides a number of facilities for debugging your models.
PerceptiLabs will display an exclamation mark on each component in your model for which a problem has been detected. An error popup on the bottom right corner will also list the total number of errors:
You can get more information about the issues by clicking on Problems to display the Errors pane:
Within this pane you can expand the different nodes to display descriptions of the issues found in your model. Double clicking on the description displays the component's code with the problematic line highlighted:
You can also click on the Console button to display more general issues found in your model: