Working With Annotations

Functions

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:

Screen Shot 2014-05-06 at 19.49.03

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:

Screen Shot 2014-05-06 at 20.14.18

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:
Screen Shot 2014-05-06 at 20.19.47

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:
Screen Shot 2014-05-06 at 20.20.49

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:Screen Shot 2014-05-07 at 11.05.50

The function you step into will be highlighted for a few moments:

Screen Shot 2014-05-07 at 10.43.57

To step out simply click the function name in the declaration, or the return statement:

Screen Shot 2014-05-07 at 10.54.31

Screen Shot 2014-05-07 at 10.55.11

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.

Leave A Comment?

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