Next: , Previous: next, Up: Commands


4.29 The Command print

The command print is used to print the current values of Malaga variables or named constants, or parts of them. You can specify any variable or constant names (including the `$' or `@') as arguments to this command; you can also specify a path of attributes and/or indexes (with suffix `L' or `R') behind each of the variable or constant names. In that case, only the values of the specified paths are printed:

     debug> print $word
     $word = [class: pronoun,
              result: S2]
     debug> print $word.class
     $word.class = pronoun
     debug> print @plan.1L.name
     $plan.1L = declarative
     debug>

If the option use-display is on, the expressions will be displayed in window on their own. If the Expressions window is not open yet, it will open now. If there is an open Expressions window, the new expressions and their values will be displayed in this window.

You can left-click on an expression to make its value disappear or appear again. You can middle-click or right-click on an expression to erase it.

The Expressions window has a menu with some commands:

Window
Export Postscript...
Export the Expressions window as an Embedded Postscript file.
Close
Close the Expressions window.

Style
Font Size ...
Select an item to adjust the font size.
Hanging
Normally, all values and subvalues are aligned at their bottom. If this option is active, records are “hanging down”: they are aligned at their top.

Expressions
Clear All
Clear all expressions.
Show All
Display the values of all expressions currently displayed.
Hide All
Suppress the values of all expressions currently displayed.