XDebug, how to disable remote debugging for a single .php file?

I am using the Eclipse IDE + remote Xdebug. EclipseIDE listens on 9000 ports to receive any Xdebug information.

There are several php scripts executed by cron on the server. Thus, each cron xdebug execution sends information to my workstation, and EclipseIDE tries to find this file in my project. But the file cannot be found because cron running scrits are not related to the project I'm working with. Thus, every start of the cron Eclipse IDE warns this message http://img2.pict.com/22/fc/86/3299517/0/screenshot2b142.png

I tried adding some lines to cron executable php scripts ...

if (function_exists('xdebug_disable')) { xdebug_disable(); } 

... but it did not help.

Any ideas?

thank

+11
php xdebug
Apr 03 2018-10-10T00:
source share
1 answer

As I researched, I have to set xdebug.remote_autostart = 0 See Documentation: http://xdebug.org/docs/remote

Attention! You must change this value via php.ini. Using the ini_set function ('xdebug.remote_autostart', 0) will not work, since sesion is already running, and you will still receive xdebug information on your remote host.

+12
Apr 03 2018-10-10T00: 00Z
source share



All Articles