• 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

PHP7 CLI attempts to load xdebug twice - "Cannot load Xdebug - it was already loaded"

Render the content of default_filter.php in Joomla front-end

Laravel Nova, route not found

args[max_input] woocommerce if statement confused

Two buttons one form

Server-sent events in PHP (without echo or print)

Nginx RTMP not recording

Dynamic dropdown Ajax PHP request

Laravel whole batch is cancelled if one Job fails

PHP's array_map including keys

RuntimeException: Unable to create the cache directory (/var/www/sonata/app/cache/dev)

Converting array to string and then back in PHP

str_word_count() function doesn't display Arabic language properly

How to send upload image through email

Laravel insert dynamic input values with radio button

About Contact Privacy policy Terms and conditions