Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When a function is executed in the Translator an annotation window will appear to the right of it. The annotations show The Translator’s Annotation Windows provide real-time results of exactly what your code is doing.

An annotation is created for each line of code that is executed. If you have imported Sample Data to your script, it will also be used in the annotations, showing you the real time results of your code.the processing on your data.

If you edit the script or navigate through sample data the annotations and data dialogs will be updated in real time.

...

Annotations are key to faster and more comprehensive development in the Translator. This picture shows a number of functions with annotation windowsThey enable you to:

...

Expand
titleView results

Verify or view your logic in the annotations in real time. For example, when mapping data you can view the results of your maps:

Image RemovedScreen Shot 2023-12-04 at 1.26.46 PM.pngImage Added

At any point in your script you can view your data in the annotations by Using trace() function.

Expand
titleView or copy your data with the string viewing window

Annotations contain clickable links that open dialog boxes with your results or The string viewing window so you can copy or inspect data in more detail.

Expand
titleNavigate between functions and files

By clicking on the function name (purple text) in the annotations you can navigate between functions in the various lua Lua files in in within your Project Tree. These function name links make it easy to step into or out of any called function.

Image Added
Expand
titleNavigate iterations in loops

Functions which are called multiple times have a navigation control at the top which lets you select the iteration of the function. See how the for loop mapping kin has a sub window with a navigation control?

Image RemovedScreen Shot 2023-12-04 at 1.39.03 PM.pngImage Added

See for loop and # Operator on Userdata Objects if these concepts are new to you!

Expand
titleUse the string viewing window to view large strings in different modes

See The string viewing window.