xdebug

xampp 1.7.4 + winxp + eclipse

99封情书 提交于 2019-12-20 03:04:02
问题 I downloaded the latest Xampp version (1.7.4), installed it under windows XP, disabled the firewall and configured both php.ini and eclipse acording to eclipse installing instructions. When running phpinfo() function both inside and outside eclipse I see Xdebug loaded but when I try to run debug mode in eclipse it freezes at 57% (waiting for xdebug connection). In xdebug log I have: Log opened at 2011-06-20 19:38:30 -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org

开启MAMP自带的xdebug

試著忘記壹切 提交于 2019-12-19 23:30:43
按照 http://www.dotvoid.com/2012/09/using-xdebug-in-mamp/所说的,把下列内容 [xdebug] ;zend_extension="/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so" 更改到了 [xdebug] zend_extension="/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so" xdebug.remote_host=127.0.0.1 xdebug.remote_enable = 1 但是查看phpinfo(),依然找不到xdebug 纠结了许久,终于再stackoverflow找到了答案, http://stackoverflow.com/questions/15114392/xdebug-not-running-on-mamp 经测试可行: I don't know if it's too late but i'm sure that someone will need the real answer. To solve yo online have

Eclipse Helios not stopping at breakpoints

坚强是说给别人听的谎言 提交于 2019-12-19 19:53:46
问题 I recently upgraded from Eclipse Galileo to Helios. Helios stops at breakpoints ONLY when debugging "as a PHP Script", but not when debugging "as a Web Page". When debugging as a web page, it looks like the correct debug query string to start a debug session is getting tacked on to the url, like so: http://localhost/hello.php?XDEBUG_SESSION_START=ECLIPSE_DBGP &KEY=129798139020511 but elipse does not stop at the breakpoints. It just zooms thru the code and displays the output in the browser.

xdebug breakpoint fail

左心房为你撑大大i 提交于 2019-12-19 16:49:11
问题 Celebrating setting up a new test server box in the usual way - by asking for help getting xdebug to work. Server: Ubuntu Server 16.10 / Nginx / PHP 7 Xdebug setup with requirements as at http://php-built.com/installing-xdebug-for-php7/ and showing on phpinfo i**: These are the current settings tried [xdebug] zend_extension="/usr/lib/php/20151012/xdebug.so" xdebug.remote_enable=true xdebug.remote_host=192.168.0.201 xdebug.remote_port=10000 (port #9000 is usually occupied by FPM, so I

PhpStorm - xDebug on demand not attaching

女生的网名这么多〃 提交于 2019-12-19 11:47:39
问题 I tried out your new feature "xedbug on demand". I stuck to these guides (https://www.jetbrains.com/help/phpstorm/2016.3/configuring-xdebug.html and https://blog.jetbrains.com/phpstorm/2016/06/xdebug-on-demand-for-cli-php-scripts-in-phpstorm-2016-2-eap/). I see that in the php Server menu when I add the path to the xdebug that PhpStorm recognizes it (the label switches from "not installed" to "XDebugger 2.4.1"). So everything seems to be fine but when I use the debugger via the bug-icon, it

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

二次信任 提交于 2019-12-19 10:45:35
问题 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. 回答1: 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

phpStorm+xdebug调试(php7.3)

ぃ、小莉子 提交于 2019-12-18 23:48:26
一、首先安装xdebug   安装xdebug比 ,运行php -i >phpinfo.txt 或者 echo phpinfo();将全部信息贴到 https://xdebug.org/wizard.php 这个网站 如图: 然后会跳转到这个页面: 这是我电脑上php.ini的配置 [xdebug] zend_extension ="D:/php/php7.3.8/ext/php_xdebug-2.7.2-7.3-vc15-nts-x86_64.dll" xdebug.remote_enable = On ;启用性能检测分析 xdebug.profiler_enable = On ;启用代码自动跟踪 xdebug.auto_trace=On xdebug.profiler_enable_trigger = On xdebug.profiler_output_name = cachegrind.out.%t.%p ;指定性能分析文件的存放目录 xdebug.profiler_output_dir ="D:/php/tmp" xdebug.show_local_vars=0 xdebug.idkey="PHPSTORM" ;配置端口和监听的域名 xdebug.remote_port=9000 xdebug.remote_host="localhost" 到此php这边配置完毕。

Setting Xdebug breakpoints solely in command line

旧街凉风 提交于 2019-12-18 17:29:32
问题 I'm struggling with a PHP maintenance script and I was looking for a way to use xdebug solely in command line (like gdb old-school), but I couldn't figure out how to set a breakpoint, do a step-into, step-over and continue. Xdebug is up and running, as phpinfo(); says. I found a lot of documentation regarding how to do this using Eclipse and other tools, but none to CLI. Could anyone help me? My environment is Centos 6 and Bash. Any help is appreciated. Thank you! 回答1: This is actually

How to enable xdebug with nginx?

大憨熊 提交于 2019-12-18 14:51:28
问题 My situation is the following: I have a VM (Ubuntu server 13.04) with PHP 5.4.9-4ubuntu2.2, nginx/1.2.6, php5-fpm and Xdebug v2.2.1. I'm developing an app using PhpStorm 6.0.3 (which I deploy on the VM). My problem is, whenever I try to start a debugging session, the IDE never gets a connection request from the webserver (And thus, the session never starts). I looked through a lot of recommendations about xdebug configuration and found nothing useful. What I recently realized is that if I set

How to debug 500 Error in Symfony 2

让人想犯罪 __ 提交于 2019-12-18 12:49:29
问题 I am struggling with Symfony 2 error reporting because I can't find out what really is happing when a 500 Error is triggered. I have XDebug correctly installed, but it seems like Symfony rules everything. The custom pages just says: Oops! An Error Occurred The server returned a "500 Internal Server Error". Something is broken. Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused. That's