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

  • Exception Output ## Output Exceptions ## This is how you catch and display Lucee exceptions to the web browser. #### Example #### ```lucee try { throw &quot;an error happened&quot;; } catch ( any e ){ dump(e); } Go on with your code ``` Result <cfdump> shows the full exception structure without blocking your code. Dump include all stack trace with it

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