• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

PHP: Print caught exception like Xdebug

phpexceptionxdebug


PHP Snippet 1:

xdebug_print_function_stack($exception);

PHP Snippet 2:

echo '<table>'.$e->xdebug_message.'</table>';

PHP Snippet 3:

xdebug.show_exception_trace = 1

PHP Snippet 4:

xdebug.show_error_trace = 1

Related Snippets

CSV to PHP class properties

WordPress Subquery returns more than 1 row on SELECT

Google Calendar API batch request PHP

Use Python plotly chart in PHP

javascript html popup window

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

Pages are working fine on localhost but not running on the hosting server

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

PHPExcel How to set conditional formatting to change cell background color based on cells values

Smarty if isset

Transform array, set each array element with parent key php

Declaration of OMDb::query(string $statement) must be compatible with PDO::query

phpunit - testing is painfully slow

Query Optimization, changing the queries in the loop into a single processing query

PHP - Check if string contains words longer than 4 characters, then include "+ *", and for those shorter than 4 characters include only "*"

About Contact Privacy policy Terms and conditions