Debugging

Functions

  • Dump Outputs the elements, variables and values of most kinds of CFML objects. Useful for debugging. You can display the contents of simple and complex variables, objects, components, user-defined functions, and other elements.
  • Echo Writes the given string to the main response buffer regardless of conditions established by the cfsetting tag. see also function writeOutput.
  • GetComponentMetaData Gets metadata (such as the functions and implemented interfaces of a component) for a CFC or Interface.
  • GetComponentStaticScope returns the static scope of a specific component, of course access rules apply.
  • GetContextInfo Returns information about the current context.
  • GetCPUUsage returns the CPU usage for a defined time range (default: 1000ms).
  • GetMetadata Returns back meta information depending on the object passed in
  • GetPageContext Gets the current PageContext (http://www.lucee.org/javadoc/lucee/runtime/PageContext.html) object that provides access to page attributes and configuration, request and response objects.
  • GetTickCount Returns the number of milliseconds since the start of the application server
  • IsDebugMode Determines whether debugging output is enabled.
  • SizeOf this function is experimental, do not use in a production environment. this function returns the size in bytes of a given object.
  • SystemOutput writes the given string to the output stream.
  • WriteDump Outputs the elements, variables and values of most kinds of CFML objects. Useful for debugging. You can display the contents of simple and complex variables, objects, components, user-defined functions, and other elements.
  • WriteLog Writes a message to a log file.

Guides

Tags

  • <cfdump> Outputs the elements, variables and values of most kinds of CFML objects. Useful for debugging. You can display the contents of simple and complex variables, objects, components, user-defined functions, and other elements.
  • <cflog> Writes a message to a log file.
  • <cfsetting> Controls various aspects of page processing, such as the output of HTML code in pages. One benefit of this option is managing whitespace that can occur in output pages served by CFML.
  • <cfthrow> The cfthrow tag raises a developer-specified exception
  • <cftimer> Displays execution time for a specified section of CFML code.
  • <cftrace> Displays and logs debugging data about the state of an application at the time the cftrace tag executes.