简体   繁体   English

在外部php服务器上进行“在线”调试

[英]“Online” debuging on external php server

I have big project (php+js+html), on external server. 我在外部服务器上有一个大项目(php + js + html)。 I'm wondering, is possible to work “online” on this project. 我想知道,是否可以在此项目上“在线”工作。 On server is lot of php files with classes and functions which I would use on my computer in Eclipse (or other IDE, php debug, something more than nodepad++). 服务器上有很多php文件,这些文件带有我将在Eclipse的计算机上使用的类和函数(或其他IDE,php调试,除了nodepad ++外)。 I thought Git help me with this, but I don't know, how configurate git repository, and I start wondering is this possible. 我以为Git可以帮助我解决这个问题,但是我不知道如何配置git存储库,我开始怀疑这是否可能。

Yes, but its kill php perfomance. 是的,但是它会杀死php性能。 You can use xdebug php extension(git will not help you in this moment) You must: 您可以使用xdebug php扩展名(git目前不会帮助您),您必须:

  • install x-debug: example(cent os for php71): 安装x-debug:示例(针对php71的cent os)
    yum isntall php71-php-pecl-xdebug
  • config xdebug extension(/etc/opt/remi/php71/php.d/15-xdebug.ini): config xdebug扩展名(/etc/opt/remi/php71/php.d/15-xdebug.ini):

    xdebug.remote_enable = 1 xdebug.remote_enable = 1
    xdebug.remote_connect_back = 1 xdebug.remote_connect_back = 1
    xdebug.show_local_vars=1 xdebug.show_local_vars = 1
    xdebug.remote_autostart=1 xdebug.remote_autostart = 1
    xdebug.idekey = "production" xdebug.idekey =“生产”

  • sets idekey in your IDE 在您的IDE中设置idekey

full documentation: https://xdebug.org/docs/remote 完整文档: https : //xdebug.org/docs/remote

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM