Functions
Contents
The annotations show exactly how the code is working and include click-able links to inspect data and to navigate to/from called functions.
Annotation blocks
An annotation block appears to the right of each function that is executed.
In this case ProcessLab()
is not called so it has no annotation block:
Parameters and Returns
If a line of code contains a function call, the associated annotation element displays the parameters passed to the function call, and the return values if any are defined. Both parameters and return values are click-able links that open dialogs to inspect the data.
For example, consider the call to the ProcessADT()
function:
Function execution
When a function is executed more than once during the processing of the sample message, the annotation displays a count of the number of times that it was called:
Initially the annotation displays the data for the first time the function was called, just hover over the count indicator to use the arrows to navigate through the function calls:
Code navigation to and from functions
The function names in annotations are links that enable you to step into or out of any called function. Simply click on the name where a function is called to step into it, or click on the name in the function declaration to step out. The pictures below will make this clearer.
To step into the ProcessAdt()
function simply click the name:
The function you step into will be highlighted for a few moments:
To step out simply click the function name in the declaration, or the return statement:
Tip: Function navigation is fully synchronized!
Not only does the Translator allows you to navigate through functions, but also navigate through the calls, see Code navigation for details.