Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 812135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:09:21+00:00 2026-05-15T01:09:21+00:00

By default Xdebug will dump any exception regardless of whether it is caught or

  • 0

By default Xdebug will dump any exception regardless of whether it is caught or not:

try {
    throw new Exception();
}
catch (Exception $e) {
}
echo 'life goes on';

With XDebug enabled and the default settings this piece of code will actually output something like the following (nicely formatted):

( ! ) Exception: in /test.php on line 3 Call Stack
#   Time    Memory  Function    Location 1  0.0003  52596   {main}( )   ../test.php:0
life goes on

Is it possible to disable this behaviour and have it dumping only the uncaught exceptions?

Thanks in advance.

UPDATE: I’m about to conclude that this is a bug, since xdebug.show_exception_trace is disabled by default yet it doesn’t behave as expected (using Xdebug v2.0.5 with PHP 5.2.10 on Ubuntu 9.10).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T01:09:22+00:00Added an answer on May 15, 2026 at 1:09 am

    Change the xdebug.show_exception_trace option (note it’s not enabled by default).

    xdebug.show_exception_trace

    Type: integer, Default value: 0

    When this setting is set to 1, Xdebug will show a stack trace whenever an exception is raised – even if this exception is actually caught.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not sure when or what I have changed, but suddenly xdebug no
'Default UITableViewCell styles from Apple should not be used' Can somebody tell me what
If I create a new project in netbeans and add a line break, Xdebug
I use xdebug php debugger. For example $date = new DateTime(); var_dump($date); The output
By default EF hides a many to many join table that does not contain
Default wp_list_authors will return authors list in the following format: <a href=#>AuthorName</a> (PostCount) I
Default JVM uses maximum 1.5 GB RAM/JVM Java application. But my Server have 8
The default markdown syntax for code blocks is indented by 4 spaces on each
By default, the ordered list looks like this: There are some spacing on the
By default pip installs editable packages into src subdirectory of the directory where Python

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.