Class

Debug

Package: Util Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Loic ROUCHON horn@phpboost.com Version: PHPBoost 5.2 - last update: 2016 04 27 Since: PHPBoost 3.0 - 2009 10 03 Contributor: Julien BRISWALTER j1.seth@phpboost.com Located at: util/Debug.class.php
Methods summary
public static
# __static( )
public static
# enabled_current_script_debug( array $options = array() )

Enables the debug mode for the current script only.

public static
# enabled_debug_mode( array $options = array() )

Enables the debug mode

public static
# disable_debug_mode( )

Disables the debug mode

public static boolean
# is_debug_mode_enabled( )

Tells whether the debug mode is enabled

public static boolean
# is_strict_mode_enabled( )

Returns true if the strict debug mode is enabled. If true, the page processing will be stopped if any notice, warning or error is encountered.

public static boolean
# is_display_database_query_enabled( )

Returns true if the display database query is enabled. If true, the page display a database query with the Debug::dump() function and display stacktrace

public static boolean
# is_output_html( )

Returns true if the page is rendered in a browser mode.

public static
# set_plain_text_output_mode( )

Inform PHPBoost that the dbug message have to be rendered in a non html (plain text) mode.

public static
# fatal( $exception )

Displays information on an exception and exits

public static
# stop( $object = null )

prints the stacktrace and exits

public static Exception
# get_exception_context( )

returns the current exception

public static string
# get_stacktrace( )

returns the current stacktrace

public static
# get_stacktrace_as_string( $start_trace_index = 0, $exception = null )

print the current stacktrace

public static
# print_stacktrace( $start_trace_index = 0, Exception $exception = null )

print the current stacktrace

public static
# dump( mixed $object )

executes a

print_r()

in an html <pre> block

Constants summary
string STRICT_MODE
# 'strict_mode'
string DISPLAY_DATABASE_QUERY
# 'display_database_query'
Annonces