Source
13
13
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
14
** GNU General Public License for more details.
15
15
**
16
16
** You should have received a copy of the GNU General Public License
17
17
** along with this program; if not, write to the Free Software
18
18
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
19
**/
20
20
21
21
22
22
function sdb($return = false) {
23
-
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
23
+
$backtrace = debug_backtrace();
24
24
array_shift($backtrace);
25
25
$result = 'DEBUG BACKTRACE: <br/>';
26
26
foreach ($backtrace as $n => $bt) {
27
27
$result .= ' --['.$n.']-- '.$bt['file'].' : '.$bt['line'].'<br/>';
28
28
$result .= " <b>".(isset($bt['class']) ? $bt['class'].$bt['type'].$bt['function'] : $bt['function']).'</b>';
29
29
$args = [];
30
30
foreach ($bt['args'] as $arg) {
31
31
$args[] = is_array($arg) ? print_r($arg, true) : $arg;
32
32
}
33
33
$result .= '( '.implode(', ', $args).' ) <br/>';