xdebug

Visual Studio Code IDE + Docker实现PHP Xdebug调试

混江龙づ霸主 提交于 2019-11-29 07:05:20
一、Docker中安装配置Xdebug 通过phpinfo()输出当前安装的PHP版本信息,将信息拷贝到 https://xdebug.org/wizard.php 相应输入框中,系统会自动检测核实的xdebug版本,如下图所示: 点击上图所示的操作按钮,会出现如下界面: 从visual studio code IDE中进入对应的docker容器(笔者这里的php-fpm的容器名称为files_php-fpm), 通过wget http://xdebug.org/files/xdebug-2.7.2.tgz下载xdebug安装包,如下图所示: 下载编译安装并配置xdebug(安装其他PHP拓展操作类似): 1、通过tar -xvzf xdebug-2.7.2.tgz命令解压安装包; 2、通过cd xdebug-2.7.2进入安装目录中,执行phpize命令(笔者这里的路径为/usr/local/services/php/bin/phpize)生成configure配置文件; 3、再执行 ./configure --with-php-config=/usr/local/services/php/bin/php-config命令; 4、最后执行make && make install 5、修改php.ini配置文件,添加zend_extension = /usr/local

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

南楼画角 提交于 2019-11-29 06:06:50
I'm using Eclipse IDE + remote Xdebug. EclipseIDE is listening 9000 port for some kind of Xdebug information. 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(

eclipse远程debug,java项目

混江龙づ霸主 提交于 2019-11-29 04:36:11
首先java项目要支付可远程调试得到启动时加入参数 启动远程调试 -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=可用于远程调试端口 启用JMX,远程性能观察 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 #可用于远程JMS端口 -Dcom.sun.management.jmxremote.ssl=false #是否采用SSL -Dcom.sun.management.jmxremote.authenticate=false #是否安全校验 -Djava.rmi.server.hostname=10.10.9.221 #使用IP eclipse配置 其中:host为远程java程序提供远程调试的IP,post为远程java程序提供远程调试的端口 使用 Eclipse 远程调试 Java 应用程序 摘抄: http://www.ibm.com/developerworks/cn/opensource/os-eclipse-javadebug/ 远程调试对应用程序开发十分有用。例如,为不能托管开发平台的低端机器开发程序,或在专用的机器上(比如服务不能中断的 Web 服务器)调试程序。其他情况包括

Waiting for the XDebug Session 57% in Eclipse PDT

廉价感情. 提交于 2019-11-29 03:44:51
Browsing the hints when I write this message it seems this is a tough question with all kind of patches, but no clear answer ... Anyway, I try my chance, here it is. I'm using Eclipse Helios PDT on Ubuntu 10.04, with XDebug and the corresponding section in php.ini as following: xdebug support enabled Version 2.0.5 Supported protocols Revision DBGp - Common DeBuGger Protocol $Revision: 1.125.2.6 $ GDB - GNU Debugger protocol $Revision: 1.87 $ PHP3 - PHP 3 Debugger protocol $Revision: 1.22 $ Directive Local Value Master Value xdebug.auto_trace Off Off xdebug.collect_includes On On xdebug.collect

How can you use php xdebug if you are on NAT behind a firewall?

牧云@^-^@ 提交于 2019-11-29 02:53:34
问题 I have the following use case for debugging a PHP application: The developer does have a private IP address The developer can connect only to a limited number of ports from the server, like 80, 8080, 3128, others being limited by the outgoing firewall. Still if the outgoing requests are HTTP he could use a proxy that does not have this limitation. the server machine is fully configurable Is is possible to use xdebug in this circumstance? How? It is possible to establish a VPN but this is not

Xdebug PhpStorm: Waiting for incoming connection with ide key

你。 提交于 2019-11-29 02:49:12
问题 I've searched a lot for this problem when debugging php using PhpStorm with xdebug, I found 3 or 4 links discussing this problem, but none of them are useful.My Xdebug's version is 2.2.3, and PhpStorm'version is 6.03. I could debug every line step by step except this one $this->link = mysql_connect($this->dbserver, $this->dbuser, $this->dbpass); PhpStorm shows this error:Waiting for incoming connection with ide key "14841". Here are my xdebug configuration: zend_extension="/usr/lib/xdebug.so"

Xdebug and No Profiling Output

假装没事ソ 提交于 2019-11-29 01:45:56
问题 This is a similar problem to XDebug profiling in PHP - can't get output but mine is on windows and I have the full path specified (which solved his problem) I am not getting any output even though I have enabled the profiler. Below is a copy of xdebug setup (I have indented all the options that have been uncommented.) - Please note that xdebug is working fine as Ii have been getting the standard xdebug errors. If it make any difference I am using xampp, cakephp, php 5.3 Any help would be

xdebug won't stop at breakpoint

喜夏-厌秋 提交于 2019-11-29 01:09:55
I spend some hours to set up my IDE to debug PHP with eclipse and xdebug.. Everything is ok except the breakpoint I set on eclipse. If I double-click on a line to add a breakpoint, the debugger want not to stop.. If a add the line xdebug_break() the debugger stops well at the line... It's maybe a problem with the configuration. Could anyone help me ? Eclipse: Eclipse PDT 2.2.0 All In Ones Windows 32 bits Xdebug: 5.3 VC6 (32 bit) PHP: PHP Version 5.3.3 PHP.ini [xdebug] xdebug.remote_enable=1 xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_handler="dbgp" xdebug.remote_mode=req

PHP 安装 Xdebug 扩展(一)

谁说我不能喝 提交于 2019-11-29 00:56:37
一、前言 1. Xdebug 简介 Xdebug 是一个开放源代码的 PHP 程序调试器(即一个Debug工具),可以用来跟踪,调试和分析PHP程序的运行状况。当前最新版本为 Xdebug 2.5.0。 2. Xdebug 相关资料 官网:https://xdebug.org 官网文档:https://xdebug.org/docs 3. 选择合适的版本 如果不知道该下载哪个版本,官方提供了一个检测工具,只需要打印 phpinfo() 的信息,并全部复制到该工具的文本框内,并点击下面的“Analyse my phpinfo() output”按钮即可,官方将会提供详细的下载和安装介绍。 工具传送门 如果官方的文档看不懂,可以继续往下看。 二、安装 Xdebug 扩展 以下为本人的安装步骤。 1. Linux、macOS 下安装 # 下载、解压、安装、编译: $ curl -O https://xdebug.org/files/xdebug-2.5.0.tgz $ tar -zxf xdebug-2.5.0.tgz $ cd xdebug-2.5.0 $ phpize $ ./configure --with-php-config=/usr/bin/php-config $ make $ make install Installing shared extensions: /usr

php-xdebug配置记录

点点圈 提交于 2019-11-29 00:53:33
[xdebug] ;断点调试 xdebug.remote_enable=On ;远程调试 xdebug.remote_autostart=On ;开启远程调试自动启动 xdebug.remote_host=192.168.33.1 xdebug.remote_port=9001 xdebug.auto_trace=on ;启用代码自动跟踪 xdebug.collect_vars=On ;收集变量 xdebug.collect_return=On ;收集返回值 xdebug.collect_params=On ;收集参数 xdebug.idekey=shijiebang xdebug.remote_log="/tmp/xdebug.log" ;性能分析 xdebug.profiler_enable=On ;启用性能检测分析 ;xdebug.trace_output_dir="/tmp/xdebug_profiler" ;指定堆栈跟踪文件的存放目录 xdebug.profiler_output_dir="/tmp/xdebug_profiler" ;指定性能分析文件的存放目录 xdebug.profiler_output_name="cachegrind.out.%p" xdebug.profiler_enable_trigger=1 xdebg官网:https://xdebug