Debugging

Functions

  • CallStackDump() Dump the context (stacktrace) of the current position.
  • CallStackGet() Returns the context (stacktrace) of the current position.
  • ComponentCacheList() list elements in the component path cache
  • DebugAdd() Adding data to debug output.
  • 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.
  • GetContextRoot() Returns path to the J2EE server context root for the current request.
  • 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 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.
  • Trace() Displays and logs debugging data about the state of an application at the time this function executes.
  • 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.
  • <cfprocessingdirective> Suppresses extra white space and other output, produced by CFML within the tag's scope.
  • <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.