Xdebug, how to disable a single Remote debugging of PHP files?

I am using the eclipse ide to remotely Xdebug

There are some PHP scripts run by cron on the server So every cron that executes Xdebug sends information to my workstation, and the eclipse IDE is trying to find this file in my project But the file could not be found because the script run by cron has nothing to do with the project I am using Therefore, every cron running the eclipse IDE is alerted to this message http://img2.pict.com/22/fc/86/3299517/0/screenshot2b142.png

I tried to add some strings to the PHP script executed by cron

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

... but it didn't help

Any ideas?

thank you

Solution

I investigated that I should set Xdebug remote_ autostart = 0

Important! You should use PHP Ini change this value Using function ini_ Set ('xdebug. Remote_autostart ', 0) will not work because the session has started and you will still get Xdebug information from the remote host

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>