xdebug

Eclipse, XAMPP, xDebug - waiting for XDebug session - stays in 57%

牧云@^-^@ 提交于 2019-12-01 12:09:46
When I start debugging the process stays there at 57% and says "waiting for XDebug session". This is a duplicate post on StackOverFlow, but I tried all the answers, nothing worked. It was working fine until before two days. I don't know what went wrong. Having used Eclipse to launch xdebug sessions in Firefox for ever now, all of a sudden 23/4/2013 it would not launch xdebug using Firefox. It gave me the launch 57% and hang problem. It was quite happy to launch xdebug sessions in IE/Chrome/Safari/Opera but not Firefox. The only thing I changed around this time was I upgrades my java runtime to

XDebug: Windows + Docker + PHPStorm

流过昼夜 提交于 2019-12-01 11:05:32
My OS is Windows 10. I've run Docker via the boot2docker image. IDE I use is PHPStorm. What I want to do is debug with XDebug, but I don't get it running. I searched the Web and tried the examples I found but nothing helps. Is there anyone with the same architecture who can help me? Edit: Nginx ist running on the server. Current setup: xdebug.ini zend_extension=xdebug.so xdebug.remote_enable=1 xdebug.remote_autostart=0 xdebug.remote_connect_back=1 xdebug.remote_port=9000 xdebug.idekey=PhpStorm PhpStorm server Host is same IP I connect for SSH. Path mappings is enabled. Debugger is Xdebug I

Why won't PHPUnit code coverage report functions that aren't called?

萝らか妹 提交于 2019-12-01 10:05:40
问题 I'm trying to get code coverage on one of my projects, but functions and classes that aren't called don't factor into the coverage calculations. It's hard to see what isn't covered yet (lots) when large chunks of code are ignored. In the image below, I would expect the bodies of the first three functions to be highlighted red. Lines that aren't executed in functions that do get executed show up red, at least. For what it's worth, I'm running Debian Testing with PHP 7.0.12-1 and XDebug 2.4.1-1

XDebug: Windows + Docker + PHPStorm

徘徊边缘 提交于 2019-12-01 08:25:33
问题 My OS is Windows 10. I've run Docker via the boot2docker image. IDE I use is PHPStorm. What I want to do is debug with XDebug, but I don't get it running. I searched the Web and tried the examples I found but nothing helps. Is there anyone with the same architecture who can help me? Edit: Nginx ist running on the server. Current setup: xdebug.ini zend_extension=xdebug.so xdebug.remote_enable=1 xdebug.remote_autostart=0 xdebug.remote_connect_back=1 xdebug.remote_port=9000 xdebug.idekey

Xdebug with PHPStorm and a Docker container

风格不统一 提交于 2019-12-01 08:13:17
Setup: Windows 10; Docker running with Boot2Docker on Hyper-V; PHPStorm 9 Webserver on the VM is Nginx. I've configured the xdebug.ini for php5-fpm as: zend_extension=xdebug.so xdebug.remote_enable=on xdebug.remote_port=9000 xdebug.remote_connect_back=On xdebug.remote_handler=dbgp xdebug.profiler_enable=0 If I set a breakpoint and reload the page I get an incoming connection from Xdebug in PHPStorm: I wonder that there is only one file shown and not the entire project which is much bigger. If I accept the connection I can debug the very first line but it is not stopping on my breakpoint and

[视频教程] 配置vscode的PHP自动补全提示与使用Xdebug进行远程调试debug

非 Y 不嫁゛ 提交于 2019-12-01 07:30:55
默认下载安装完的vscode并不能准确提示和检测PHP的语法错误,需要手动指定一下本机的PHP程序路径。按下面的操作配置完后就能在文件保存的时候检测语法有无错误。 打开文件->首选项->setting,把PHP的执行路径填进去,前提是本机已经安装了PHP程序 { "workbench.sideBar.location": "left", "php.suggest.basic": false, "php.validate.executablePath":"/usr/bin/php" } 配置PHP的自动提示,我们并不能满足只是单纯的检测语法,还需要能够自动补全代码和类库提示 启动VS Code快速打开(Ctrl+P),粘贴以下命令,然后按Enter。 ext install felixfbecker.php-intellisense 安装xdebug apt-get install php-xdebug 启用本地脚本调试 /etc/php/7.3/cli/php.ini: [XDebug] xdebug.remote_enable = 1 xdebug.remote_autostart = 1 远程调试网站: 修改配置执行在线fpm中的xdebug,remote_host是本机的IP [XDebug] xdebug.remote_enable = 1 xdebug.remote

Xdebug with PHPStorm and a Docker container

一笑奈何 提交于 2019-12-01 06:34:27
问题 Setup: Windows 10; Docker running with Boot2Docker on Hyper-V; PHPStorm 9 Webserver on the VM is Nginx. I've configured the xdebug.ini for php5-fpm as: zend_extension=xdebug.so xdebug.remote_enable=on xdebug.remote_port=9000 xdebug.remote_connect_back=On xdebug.remote_handler=dbgp xdebug.profiler_enable=0 If I set a breakpoint and reload the page I get an incoming connection from Xdebug in PHPStorm: I wonder that there is only one file shown and not the entire project which is much bigger. If

netbeans配置php调试环境

那年仲夏 提交于 2019-12-01 05:46:51
php的调试确实很烦人, 前端时间配置了vs code的php 断点调试环境, 但是对于一个跟着ms脚步一直走的人来说感觉坑确实太多了, 正好公司说要转java, 网上搜了下IDE, 感觉netbeans个人还听喜欢, java,php都满足, 但是调试环境需要配置, 我的配置如下: 在原有的基础上增加下列三行: zend_extension="E:/phpStudy/PHPTutorial/php/php-5.3.29-nts/ext/php_xdebug.dll" xdebug.remote_mode=req xdebug.remote_port=9000 //这里是9000, 要与netbeans的调试器端口相同 xdebug.idekey=netbeans-xdebug //回话id, 要与netbe 的回话id相同 配置完成之后打开phpinfo, 会弹出下来提示: 然后打开netbeans->工具->选项->php->调试 然后我重启了下服务和netbeans , 打开断点调试, ok顺利进入断点调试 netbeans php的具体配置官网有给出教程; https://netbeans.org/kb/docs/php/debugging_zh_CN.html 来源: oschina 链接: https://my.oschina.net/u/246078/blog

Break on property change in Xdebug

一笑奈何 提交于 2019-12-01 05:26:50
I'm trying to find out where a certain property of a certain object gets modified. Due to PHP's highly dynamic nature ( $o->$prop = $val and such) this is practically impossible to do by simple code analysis. Is there a way to start a debugging session and break at the line where the property gets modified? (Adding a magic __set with a conditional xdebug_break() call to the class might help in simple cases, but if the class or one of its ancestors already has a magic setter, it can get very complicated, so that's not a good solution either.) According to the xdebug documentation, it seems like

phpstorm+xdebug安装配置

ε祈祈猫儿з 提交于 2019-12-01 05:01:57
这个问题也困惑了我好久 烦死了 今天看了qing师傅的博客 跟着安装 运行环境:   phpStorm 2018   PHP 5.45 nts VC9   Xdebug 2.4.1 0x01 PHP安装xdebug扩展 自己之前装一直没装起 原来是版本问题 下载地址:https://xdebug.org/download.php 三、配置phpstorm   1>.打开phpstorm,PHP>Debug 的设置,“Debug port”与“xdebug.remote_port”一致,并且允许外部连接(浏览器XDebug插件):          如图host配置成你刚才设置php配置文件中 xdebug.remote_host="localhost"对应的参数,注意端口默认80,不需要改变,debugger选择xdebug即可   2>.PHP>Debug 的设置,配置端口:        3>.设置服务器调试配置,Run>Web Server Debug Validation:      四、安装Chrome的XDebug插件,参考链接: Install Xdebug Helper 五、在phpstorm中使用xdebug进行调试:      差不多就是这样,等具体实践了再写..... 来源: https://www.cnblogs.com/-zhong/p/11656747