14

Possible Duplicate:
How to disable XDebug

I have installed xdebug, but it is making my unit tests much slower. Is there a way to disable it via ini_set or other way. I tried xdebug_disable(), but no difference at all, unless I change php.ini file.

My idea is to turn on xdebug only when code-coverage report is generated, I don't need it before that.

Community
  • 1
  • 1
Zeljko
  • 4,818
  • 4
  • 33
  • 44

1 Answers1

3

I didnt check but maybe

xdebug_start_code_coverage();

and

xdebug_stop_code_coverage();

work for you

found it here http://xdebug.org/docs/code_coverage

Alex Bailey
  • 1,659
  • 10
  • 15