Using trace() to view data for debugging

Using trace() to debug

The built-in trace() function introduced in Iguana 5.6 is our recommended method of viewing variables values for debugging. We also mention three previous (historical) methods and explain why using the built-in trace() function is better.

First a basic example:

As you can see trace() is very simple, it just displays its parameters in the annotation block.

Examples of using trace()

History: older methods that are no longer recommended

In the past we used three different functions for debugging. Initially we used the built-in print() function and then a debug() method that was very similar to trace(). Then we introduced trace(), which is now a built-in function.

Leave A Comment?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.