Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn off xdebug in script? [duplicate]

Tags:

php

xdebug

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.

like image 654
Zeljko Avatar asked Nov 17 '10 17:11

Zeljko


1 Answers

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

like image 86
Alex Bailey Avatar answered Oct 25 '22 04:10

Alex Bailey