Static Public Member Functions |
| static | addLogMessage ($message, $file='debugLog', $array=FALSE, $force=FALSE, $unlink=FALSE) |
| static | addMessage ($message) |
| static | endTimer () |
| static | endTimerInstance ($startTime=0) |
| static | errorHandler ($errno, $errstr, $errfile, $errline) |
| static | fireBug ($method, $parameters=array()) |
| static | getMemoryDebugFlag () |
| static | getMessages () |
| static | getServerLoad () |
| static | prettifyBackTrace ($debug) |
| static | setMemoryDebugFlag ($comment, $init_usage=0) |
| static | showTemplateError ($errorText, $evalCode) |
| static | startTimer () |
| static | startTimerInstance () |
Static Public Attributes |
|
static | $memory_debug = array() |
Static Protected Attributes |
|
static | $_messages = array() |
|
static | $_starttime |
Detailed Description
IPSDebug
Only useful when developing
Member Function Documentation
| static addLogMessage |
( |
$ |
message, |
|
|
$ |
file = 'debugLog', |
|
|
$ |
array = FALSE, |
|
|
$ |
force = FALSE, |
|
|
$ |
unlink = FALSE |
|
) |
| [static] |
Add a message to the log file Handy for __destruct stuff, etc
- Parameters:
-
| string | Message to add |
| string | Which file to add it to |
| mixed | False, or an array of vars to include in log |
| bool | Force log even if IPS_LOG_ALL is off - handy for on-the-fly debugging |
| bool | Unlink file before writing |
- Returns:
- void
Add message
- Parameters:
-
- Returns:
- void
Stop the timer
- Returns:
- integer Length of time
Stop the timer (compare against provided time instead of stored time)
- Parameters:
-
- Returns:
- integer Length of time
| static errorHandler |
( |
$ |
errno, |
|
|
$ |
errstr, |
|
|
$ |
errfile, |
|
|
$ |
errline |
|
) |
| [static] |
Custom error handler
- Parameters:
-
| integer | Error number |
| string | Error string |
| string | Error file |
| string | Error line number |
- Returns:
- void
| static fireBug |
( |
$ |
method, |
|
|
$ |
parameters = array() |
|
) |
| [static] |
Get current memory usage
- Returns:
- integer Current memory usage
Return messages
- Returns:
- array Stored messages
Retrieve server load and update cache if appropriate
- Returns:
- string Server load
Prettify a debug backtrace
- Parameters:
-
- Returns:
- string
Set a memory debug flag
- Parameters:
-
| string | Comment to set |
| integer | Memory usage to compare against |
- Returns:
- int Memory used
Displays a templating error Only used when IN_DEV is on
- Parameters:
-
| string | Complete PHP error string |
| string | Text evaluated by PHP |
- Returns:
- void
Start a timer
- Returns:
- void
Start a timer (return value instead of storing locally)
- Returns:
- integer Time
The documentation for this class was generated from the following file:
- admin/sources/base/core.php