xdebug

Phpstorm does not see xdebug but it is installed

旧时模样 提交于 2019-12-02 23:52:07
PhpStorm cannot see xdebug but it is installed. In my browser xdebug works fine. Where is the problem? The error: Connection with 'xdebug' was not established. Validate installation. php.ini [xdebug] xdebug.idekey=PHPSTORM zend_extension="/Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so" xdebug.default_enable=1 xdebug.coverage_enable=1 xdebug.profiler_enable = 1 xdebug.profiler_output_dir = "/tmp" xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug.remote_autostart=1 phpinfo in phpstorm: PHP

phpstorm xdebug with a symfony2 project

自古美人都是妖i 提交于 2019-12-02 23:45:34
I am trying to debug a symfony2 application with xdebug and phpstorm. My local development environment is Ubuntu 14.04 with apache2 and Xdebug version is 2.2.7 I have this working on another php (not symfony2) projects with the following guides: https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html https://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm When I execute the bookmarlet to set the cookie and start debugging this symfony2 project phpstorm detects the incoming connection (which I accept), but nothing else

Mac+Docker环境下xdebug的配置

匿名 (未验证) 提交于 2019-12-02 22:11:45
由于容器化的需要,前几天我本地也换成了docker环境。就研究了一下docker环境下phpstorm和xdebug的配置。 http://www.mmfei.com/?p=453 这个博客给出了一个常规的解决思路。这里需要注意的是,在docker环境下phpstorm的CLI Interpreter需要配置容器镜像和目录映射。 mac环境下docker中的Xdebug不能使用127.0.0.1左右remote_host。而是要使用docker的宿主IP。 由于办公环境的复杂,导致我得本机IP,也就是docker的 宿主IP经常会发生变化,++那么xdebug配置文件中配置xdebug_remote_host为宿主ip的方法就并不实用++ 。我在stack overflow上找到了解决方法。那就是配置xdebug_remote_host为==docker.for.mac.localhost==就可以通过静态的配置去动态的访问宿主IP 这里要注意的是Docker的版本需要在17.06以上! 完整配置如下 zend_extension = xdebug.so xdebug.remote_enable = 1 xdebug.remote_connect_back = 0 xdebug.remote_host = docker.for.mac.localhost xdebug.remote

Zend Studio下的PHP代码调试

匿名 (未验证) 提交于 2019-12-02 22:11:45
原文地址为: Zend Studio下的PHP代码调试 Zend Studio php 安装 Zend Debugger http://downloads.zend.com/pdt/server-debugger debugger 下载 zip 解压缩。得到一个目录 x _ x _x_comp x _ x _x_nts_comp x nts 指 non thread safe phpinfo php thread safe 1 ZendDebugger.dll php php /ext/ 2 4 php.ini [Zend] zend_extension_ts=C:/wamp/bin/php/php5.2.9-2/ZendDebugger.dll ; ts zend_debugger.allow_hosts=127.0.0.1 zend_debugger.expose_remotely=always 127.0.0.1 IP web 3 dummy.php apache document root 4 apache 5. Zend Studio Tools->preferences->debug 6. “A timeout occurred when the debug server attempter to connect to the following client

CentOS7 + Phpstorm + Xdebug本地和远程调试配置教程大全

匿名 (未验证) 提交于 2019-12-02 22:11:45
疑难杂症,可以通过服务器端的xdebug.remote_log进行诊断处理。 一、前言 初学PHP语言,一般会推荐notepad++等编辑器进行开发。但是入门之后,使用phpstrom等IDE好处多多,比如学习一些框架的时候, 断点调试 对于理解框架的整个运行机制和生命周期无可替代。在生产环境中,IDE的调试的变量监控对于 提高开发效率 也至关重要。当然了,每个行业都有前1%的人,程序员也不例外,使用VIM也未尝不可。 本篇的主要写作原因是,Xdebug配置对于新手来说问题多多,网上的教程多是一家之言,对于很多配置的官方文档来源语焉不详,缺乏对于可能存在的问题的调试办法,对于各种本地、远程等各种环境下的配置不做兼顾。本篇将就以上问题的每一个 细节的来源、机理 尽量加以说明,争取做到读者可以 触类旁通 ,不必查找其他资料。 二、准备和系统说明 使用Vmware安装CentOS作为web开发机实践 】 开发机配置的是Nginx + php7.0 所有步骤依赖Phpstorm的配置说明,即settings->Languages&Frameworks->PHP->Debug 特别注意,本文的全部内容都是按照下图的Pre-configuration里的4个步骤进行的。如果你遇到本文中没有涉及到的问题,可以点击第一步中的Validate debugger configuration on

mac php/phpstorm 配置

匿名 (未验证) 提交于 2019-12-02 22:11:45
brew install php memcached brew install memcached brew install libmemcached brew install pkg-config brew install zlib pecl install memcached xdebug pecl uninstall xdebug pecl install xdebug php.ini zend_extension=xdebug.so [XDebug] xdebug.remote_enable=1 xdebug.remote_autostart=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remote_port=8700 xdebug.idekey="PHPSTORM" phpStrom 来源:博客园 作者: boybai 链接:https://www.cnblogs.com/sanmubai/p/11509764.html

ubuntu 安装php xdebug

匿名 (未验证) 提交于 2019-12-02 22:11:45
http://xdebug.org/install.php#configure-php A list of all settings: http://xdebug.org/docs-settings.php A list of all functions: http://xdebug.org/docs-functions.php Profiling instructions: http://xdebug.org/docs-profiling2.php Remote debugging: http://xdebug.org/docs-debugger.php 下载 xdebug 最新的源码包 wget https://xdebug.org/files/xdebug-2.6.0.tgz 解压缩 tar -zxvf xdebug-2.6.0.tgz 编译安装 cd xdebug-2.6.0 phpize ./configure --enable-xdebug makemake install 在php.ini中增加xdebug配置 xdebug.so路径 在安装完xdebug时控制台会有提示 [xdebug] zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so"

phpstorm断点调试 php.ini 文件中 Xdebug 配置

匿名 (未验证) 提交于 2019-12-02 22:11:45
[XDebug] xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug" # 要打开xdebug调试 ## 下面是需要配置的 xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_port=9000 xdebug.idekey="PHPSTORM" 弄好后重启集成环境,打好断点,点击phpstorm右上方绿瓢虫图片就会进入调试!

PhpStorm配置Xdebug调试

匿名 (未验证) 提交于 2019-12-02 22:11:45
安装xdebug 去官网下载对应版本的xdebug扩展 XDEBUG EXTENSION FOR PHP | DOWNLOADS 如何选择正确版本 输出phpinfo()函数的内容 查看输出页面的网页源码 全选复制 到这个页面 ,将刚才复制的内容拷贝进去,并分析 可以得到自己当前版本的php对应哪一个xdebug文件 安装扩展 这个windows系统和Linux系统是不一样的(网上很多,不细说) windows 放到php ext的目录下 配置php.ini [XDebug] zend_extension = "D:\你php的ext目录位置\php\ext\php_xdebug.dll" xdebug.remote_autostart=1 xdebug.remote_enable = On xdebug.remote_handler = "dbgp" xdebug.remote_host = "localhost" #本地服务器 xdebug.remote_port = 9010 #默认为9000,防止与php-fpm冲突,改为9010 xdebug.idekey="PHPSTORM" #会话需要的key Linux 这个很多种情况,一般就apt和yum,如果手动编译就需要.so扩展放到正确位置(phpize使用) 配置phpStorm 先查看xdebug是否安装成功

Remote Xdebug with VirtualBox

痞子三分冷 提交于 2019-12-02 21:06:32
I'm trying to get remote debugging to work. The PHP is running on a VM and I'm trying to debug from NetBeans on the host machine. I've followed the instructions here , forwarded port 9000 in the Windows 7 firewall and in the VirtualBox network settings, and set up path mappings in NetBeans. My xdebug settings look like this: xdebug.remote_enable = On xdebug.remote_connect_back = On xdebug.idekey = "netbeans-xdebug" xdebug.remote_log = /tmp/xdebug.log When I load the URL I want to debug (using the correct idekey) it logs the following: I: Checking remote connect back address. I: Remote address