Skip to content

icms_core_Debug

Raimondas Rimkevičius edited this page Mar 9, 2020 · 1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!

icms_core_Debug

A static class for debugging

Using a static class instead of a include file with global functions, along with autoloading of classes, reduces the memory usage and only includes files when needed.

  • Class name: icms_core_Debug
  • Namespace:

Methods

message

mixed icms_core_Debug::message(string msg, bool exit)

Output a line of debug This takes the place of icms_debug()

  • Visibility: public
  • This method is static.

Arguments

  • msg string
  • exit bool

vardump

mixed icms_core_Debug::vardump(string var)

Output a dump of a variable This takes the place of icms_debug_vardump()

  • Visibility: public
  • This method is static.

Arguments

  • var string

setDeprecated

mixed icms_core_Debug::setDeprecated(string replacement, string extra)

Provides a backtrace for deprecated methods and functions, will be in the error section of debug This takes the place of icms_deprecated()

  • Visibility: public
  • This method is static.

Arguments

  • replacement string - <p>Method or function to be used instead of the deprecated method or function</p>
  • extra string - <p>Additional information to provide about the change</p>
Clone this wiki locally