开发者

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

开发者 https://www.devze.com 2022-12-25 06:54 出处:网络
I\'m using Eclipse IDE + remote Xdebug. EclipseIDE is listening 9000 port for some kind of Xdebug in开发者_高级运维formation.

I'm using Eclipse IDE + remote Xdebug. EclipseIDE is listening 9000 port for some kind of Xdebug in开发者_高级运维formation.

There are some php scripts running by cron on server. So, every cron execution xdebug is sending information to my workstation and EclipseIDE is trying to find this file in my project. But file couldn't be find because cron running scrits do not relate to the project I'm working with. So, every cron run Eclipse IDE is alerting this message http://img2.pict.com/22/fc/86/3299517/0/screenshot2b142.png

I've tried to add to cron executed php scripts some strings...

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

... but it didn't helped.

Any ideas?

Thank you


As I've investigated I should set xdebug.remote_autostart=0 See documentation: http://xdebug.org/docs/remote

Important! You should change this value through php.ini. Using function ini_set('xdebug.remote_autostart', 0) won't work because sesion has already started and you'll be still getting xdebug information to your remote host.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号