Question

i'm using MAMP and want to activate xdebug.

i've uncomment the following row in php.ini:

[xdebug]
zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"

i restarted MAMP and opened a php file containing phpinfo() on the web browser and saw a section named "xdebug". so im sure its installed.

however, the browser doesn´t print out any error messages.

how come?

Was it helpful?

Solution

Maybe you have displaying errors disabled by default. Try to do:

error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);

before causing error in your script.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top