xdebug

Zend Studio使用教程之在Docker容器中调试PHP Web应用(二)

情到浓时终转凉″ 提交于 2019-11-29 11:27:52
本教程为大家介绍的是一个全面的演示,从Docker Hub中提取合适的镜像、运行一个容器到调试PHP代码。该演示需要使用 Zend Studio 13 ,因为它引入了全新的Docker Tooling。 注意: 所描述的场景仍然可以使用 Zend Studio 早期的版本,但任何Docker管理操作需要在命令终端中执行。 Zend Studio最新试用版下载请猛戳>>> 3. 将Docker工具连接到Docker Daemon中 单击Docker Explorer视图中的链接可启动创建新Docker连接的向导。默认设置在某些情况下可能有效,尤其是在Linux上。因此可以首先单击Test Connection按钮。如果测试失败,则必须提供自定义配置。 在Windows和Mac OS X上使用 boot2docker 必须提供TCP连接配置。Docker主机和证书的路径可以在boot2docker控制台中找到。 在Linux上必须提供Unix套接字配置,套接字的位置通常是unix:///var/run/docker.sock。 再次单击Test Connection按钮应该会得到一个“Success”信息。单击Finish按钮将会建立与Docker daemon的链接,并将其显示到Docker Explorer视图中。 4. 从Docker Hub提取镜像 现在我们需要从Docker

Step-by-step: How to do Xdebug troubleshooting connection to client IDE

丶灬走出姿态 提交于 2019-11-29 10:56:47
问题 BACKGROUND Using Xdebug with PHP and Komodo IDE, and Eclipse PDT. Xdebug is installed on the server and working properly. This is confirmed because the Xdebug code commands work as expected when inserted into PHP files on the server. PROBLEM Connecting to the client workstation is not working, and it is difficult to determine why because it fails with multiple IDEs. QUESTION It would be nice to have a step-by-step checklist to troubleshoot the case where you know Xdebug is installed and

No xdebug in phpinfo()

情到浓时终转凉″ 提交于 2019-11-29 10:48:26
I have added following lines into php.ini [XDebug] zend_extension = C:\PROGRA~1\PHP5\ext\php_xdebug-2.1.0-5.3-vc9.dll xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9000 Version of php_xdebug-2.1.0-5.3-vc9.dll is obtained via page http://www.xdebug.org/find-binary.php . But there are no any mentions of 'xdebug' string in output of phpinfo() . What can be wrong? (This is my second fight with php-xdebug to get working, first time I gave up . If you have other suggestions concerning debugging please add them also, possibly as comments to the

php的yii框架下开发环境xampp,vim,xdebug,DBGp的搭建

送分小仙女□ 提交于 2019-11-29 10:21:24
本文适用于yii1.1及yii2普通安装模式,yii2采用composer安装的见 这里 。 php 的 yii 框架下开发环境 xampp,vim,xdebug,DBGp 的 搭建 选择 Linux 桌面环境 Deepin2014.1 下开发网站的理由很简单,能截图,有搜狗输入法,可以 WPS 文档记录,终端下复制粘贴很容易,相比 ubuntu,fedora 死机次数少了,对,就是不用折腾,自带的。 先说 vim 和 DBGp 插件。 Deepin2014.1 简体中文,自带的 vim7.4 版本,很多配置已经很适合大陆的人使用了,比如 Php 和 Python 的调试支持等,不需要重新编译了。可以节省不少步骤。这里提供一个 vim 的配置文件,已经自带了 DBGp 这个 vim 的插件,在 ~ 文件夹下解压缩,得到 .vim 和 .vimrc 文件,就已经在 ~ 文件夹下了。注意,复制之前做好你文件的备份,复制完毕后,命令 ll ~ 查看是否有 .vim .vimrc 这两个文件,还需要安装一下 cscope 和 ctags ,就可以了,该配置文件说明及下载见 这里 ( www.eechina.com 里最后一个文件)。你用 vim 随便打开一个文件,比如 vim test.php ,如果没有提示其他错误说明这个配置文件暂时适合你了。 再说 xampp 。 Xampp 专为

PHPStorm unable to make external connection with xdebug

て烟熏妆下的殇ゞ 提交于 2019-11-29 09:32:23
My OS is Mac Mountain lion. My PhpStorm version is 5.0.4. Here is my php xdebug info: xdebug.remote_autostart => Off => Off xdebug.remote_connect_back => Off => Off xdebug.remote_cookie_expire_time => 3600 => 3600 xdebug.remote_enable => On => On xdebug.remote_handler => dbgp => dbgp xdebug.remote_host => 127.0.0.1 => 127.0.0.1 xdebug.remote_log => data/logs/xdebug.log => data/logs/xdebug.log xdebug.remote_mode => req => req xdebug.remote_port => 9000 => 9000 xdebug.idekey => no value => no value I can debug PhpScript Run Type in PhpStorm,It works fine.So I think xdebug configure well. But

Phpstorm, xdebug and vagrant still waiting for incoming connection

拈花ヽ惹草 提交于 2019-11-29 09:21:51
This is annoying me, mainly because it was working fine then all of a sudden breakpoints stopped breaking and when i checked debugger it was just waiting for incoming connection. My vagrant machine is running on private_ip: 192.168.13.37 My xdebug.ini config is as follows: zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so xdebug.remote_enable = on xdebug.remote_connect_back = on xdebug.remote_port = 9020 These are my PHPstorm debug settings: I have a vagrant server setup in PHPstorm which has a host of dev.website.com which points at the correct IP in windows host file, the port is 80 and

Prevent xdebug to break at first line of index file

北城以北 提交于 2019-11-29 09:16:05
I have xdebug setup with Eclipse PDT. Every time I start a debug session, Eclipse breaks at the first line of my root index.php file. Is it possible to prevent this behavior? Ok I found what the problem was. In Eclipse, I just needed to go in "Windows -> Preferences -> PHP -> Debug" and uncheck "Break at first line". To make it work, I also had to go in "Run > Debug Configurations > PHP Web Application" and unselect "Break at first line" in all the configurations. You might have to restart Eclipse for it to work. This question is orginated from eclipes. But the title took me to this page when

waiting for connection (netbeans-xdebug) gets stuck

纵饮孤独 提交于 2019-11-29 08:50:11
I am using windows 8, Netbeans 8.2, php 5.6, Apache and mysql. I installed them manually and did not use all-in-one package like WAMP. When I click on debugging icon (Ctrl+F5) it gets stuck on "waiting for connection (netbeans-xdebug)" while shows the page completely without stopping at the break points. I reviewed all the possible solutions but none of them worked for me. Such as: Changing the remote_host from "localhost" to 127.0.0.1 or even to the ip address of my machine Changing the port from 9000 to different ports. Also checking the "Session-ID = netbeans-xdebug" Setting the default

How to debug docker container with PhpStorm

安稳与你 提交于 2019-11-29 07:47:01
Can't debug the web app with the following configuration: Dockerfile: FROM php:7-fpm RUN yes | pecl install xdebug \ && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_autostart=0" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_host=site.dev" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_log=/var/www/site/xdebug.log" >> /usr/local/etc/php/conf.d/xdebug.ini WORKDIR /var/www/site nginx server

Netbeans + Xdebug + php not working

岁酱吖の 提交于 2019-11-29 07:21:29
My netbeans does not work the breakpoints using xdebug, my configuration looks correct, so I configured the first time I ran up to stop debugging the first time since then has never worked, someone had this problem? The version of my netbeans is 6.8 and the version of php is 2.5.2. my php.ini: zend_extension_ts = d:\wamp\bin\php\php5.2.5\ext\php_xdebug-2.0.2-5.2.5.dll xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.idekey=netbeans-xdebug xdebug.profiler_enable=1 In my case this line needed to be included in the php.ini: xdebug