31require_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
47 if (DEBUGNOALYSS > $n_level) {
48 $r=
'<span style="font-size:12px;color:orangered;background-color:lightyellow;margin:1rem;border:1px black dashed">';
50 if (in_array(
$type, [
"string",
"integer",
"double"])) {
59 if ($print) { echo
$r;}
72 if (DEBUGNOALYSS > 1) {
73 $r =
'<span style="font-size:12px;color:brown;background-color:bisque;">';
77 if ($print) { echo
$r;}
90 if (DEBUGNOALYSS > 1) {
91 $r =
'<span style="font-size:12px;color:brown;background-color:lightyellow;display:table-row">';
95 if ($print) { echo
$r;}
107<div
class=
"d-block d-sm-none " style=
"background-color:lightblue">Xtra Small</div>
108<div
class=
"d-none d-sm-block d-md-none d-lg-none d-xl-none " style=
"background-color:red">Small</div>
109<div
class=
"d-none d-md-block d-lg-none " style=
"background-color:orangered">Medium</div>
110<div
class=
"d-none d-lg-block d-xl-none " style=
"background-color:orange">Large</div>
111<div
class=
"d-none d-xl-block " style=
"background-color:wheat">X Large</div>
121 $id = uniqid(
"debug");
124 <div
class=
" col-10 inner_box" style=
"display:none" id=
"<?= $id ?>">
127 <
h2 style=
"margin-top:100px"> Memory Usage
128 <?php echo round(memory_get_usage() / 1024.0, 2) .
" kb \n"; ?>
131 <pre><?php echo print_r(
$_POST) ?></pre>
133 <pre><?= print_r(
$_GET) ?></pre>
137 <pre><?= print_r($_FILES) ?></pre>
140 <input
type=
"button" onclick=
"document.getElementById('<?= $id ?>').show();" value=
"Show request">
150 $id = uniqid(
"debug");
153 <div
class=
" col-10 inner_box" style=
"display:none" id=
"<?= $id ?>">
156 <pre><?= print_r($GLOBALS) ?></pre>
160 <input
type=
"button" onclick=
"document.getElementById('<?= $id ?>').show();" value=
"Show session">
178<div
id=
"{$id}_infodiv" style=
"display: none;background:rgba(234, 221, 114, 0.66);color:black;font-size:80%;width:auto;">
188<a href=
"javascript:void(0)" onclick=
"$('{$id}_infodiv').show()">🕶</a>
212 echo
'<span style="font-size:80%;color:navy;background:lightgreen">';
213 echo _(
"Temps écoulé : ");
214 echo (hrtime(
true)-$timer)/1e+6;
h2($p_string, $p_class="", $raw="")
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
static timer_start()
start a timer
static echo_var($n_level, $msg, $print=true)
Display the value of a var if DEBUGNOALYSS is greater than $n_level, the debugging info has a certain...
static echo_file($msg, $print=true)
display the file
static display_global()
for development , show GLOBAL and SESSION
static display_request()
for development , show request (POST, GET)
static hidden_info($p_title, $msg)
Show a icon to display large information on demand, when you click it , the content will be showned.
static echo_function($msg, $print=true)
returns a string , for the function with a specific style
static timer_show()
stop the timer and show the elapsed time, it is used for optimising the code
static display_size()
display a bar depending of the size of the screen , it helps for CSS to see the media-size