java.lang.Object
ortus.boxlang.runtime.components.Component
ortus.boxlang.runtime.components.system.Dump

@BoxComponent(description="Display structured output of variables and expressions") public class Dump extends Component
  • Constructor Details

    • Dump

      public Dump()
      -------------------------------------------------------------------------- Constructor(s) --------------------------------------------------------------------------
  • Method Details

    • _invoke

      public Component.BodyResult _invoke(IBoxContext context, IStruct attributes, Component.ComponentBody body, IStruct executionState)
      Outputs the contents of a variable (simple or complex) of any type for debugging purposes to a specific output location.

      The available output locations are: - buffer: The output is written to the buffer, which is the default location. If running on a web server, the output is written to the browser. - console: The output is printed to the System console. - {absolute_file_path} The output is written to a file with the specified filename path.

      The output format can be either HTML or plain text. The default format is HTML if the output location is the buffer or a web server or a file, otherwise it is plain text for the console.

      Specified by:
      _invoke in class Component
      Parameters:
      context - The context in which the Component is being invoked
      attributes - The attributes to the Component
      body - The body of the Component
      executionState - The execution state of the Component
      Returns:
      The result of the invocation