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.
  • 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 aply.
  • GetCPUUsage returns the CPU usage for a defined time range (default: 1000ms).
  • 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 experimentell, to not use in productive enviroment. this function returns the size in bytes of a given object.
  • Trace Displays and logs debugging data about the state of an application at the time this function executes. Tracks runtime logic flow, variable values, and execution time. Displays output at the end of the request or in the debugging section at the end of the request.
  • 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.

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.
  • <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.