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 6210975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:15:22+00:00 2026-05-24T06:15:22+00:00

I have PHPUnit and xdebug installed, and in my php.ini files for CLI I’ve

  • 0

I have PHPUnit and xdebug installed, and in my php.ini files for CLI I’ve got:

display_errors = On
xdebug.default_enable = 1

I’ve verified that an xdebug backtrace is printed when I create an error using the interactive console, but when an error occurs while running phpunit, there is no backtrace?

What is happening to the backtrace? Is phpunit hiding it from me? Is there some setting I’m missing?

Thanks!

  • 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-24T06:15:23+00:00Added an answer on May 24, 2026 at 6:15 am

    What is happening to the backtrace? Is phpunit hiding it from me?

    Yes, PHPUnit disables xdebug, at least these traces (by calling xdebug_disable()Docs).

    Is there some setting I’m missing?

    You can add a bootstrap file in which you enable it again with xdebug_enable()Docs. This does work but will show you stack traces on any exception thrown as well (caught or uncaught).

    See as well: Issue #221 PHPUnit disables xdebug, there is another ini setting suggested:

    sebastianbergmann: The problem is the xdebug.show_exception_trace configuration setting. When set to 1, this will “show a stack trace whenever an exception is raised – even if this exception is actually caught.”. This behaviour breaks the output of PHPUnit.

    Now if I remember correctly, Derick recommended using xdebug_disable(); over ini_set('xdebug.show_exception_trace', 0);.

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

Sidebar

Related Questions

i have pear's phpunit installed (see image) I have that path in the include
I'm writing unit tests for a project (written in PHP, using PHPUnit) that have
Even though I have got the TestCase class included? <?php require_once(PHPUnit/Autoload.php); require_once(PHPUnit/Framework/TestCase.php); require_once(PHPUnit/Framework/TestSuite.php); class
For example I use Netbeans for PHP and have started to integrate PHPUnit &
I have following, very simple, XML config for PHPUnit: <phpunit bootstrap=/_tests/TestAutoload.php> <testsuites> <testsuite name=Unit
I've got xdebug installed fine (showing up in phpinfo()) but I'm trying to get
I recently got PHPUnit working with xDebug for testing my Zend Framework applications. The
I have a PHPUnit Test class that I'd like to be ignored from a
I have a series of PHPUnit tests that will need to connect to a
i have just installed phpunit on my ubuntu. now i wan't to implement some

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.