xdebug

Installing xdebug on Ubuntu LAMP stack

混江龙づ霸主 提交于 2019-12-11 01:53:36
问题 I keep throwing this error but I have version 7.1.2 installed. Why can't I ./configure Here is my error message: checking whether to enable Xdebug support... yes, shared checking Check for supported PHP versions... configure: error: not supported. Need a PHP version >= 7.0.0 and < 7.3.0 (found 5.3.10-1ubuntu3.26) root@precise32:/var/www/xdebug# php -v PHP 7.1.2-3+deb.sury.org~precise+1 (cli) (built: Feb 22 2017 10:29:40) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0,

xdebug_start_trace behaving strangely

拥有回忆 提交于 2019-12-11 01:26:53
问题 I'm trying to reduce my script memory usage even more. I am trying to make my script generate output with xdebug to analyse the memory usage. It's a CLI based script has shebang #!/usr/local/bin/php -q I pass a parameter to it and check it with $argc > 1 && is_numeric( $argv[1] ) When I login to ssh and do ./script.php 90 and add this code, if( $argv[1] == 90 ) { xdebug_start_trace('/var/www/html/logs/' . rand(1,9999999) ); } I see the output file in the logs folder. But when I put the xdebug

Xdebug (Vagrant) not working with SublimeText 3

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 00:51:59
问题 I've installed Xdebug on my Vagrant server and the XdebugClient plugin for Sublime Text 3. When I start debugging, my page loads in the browser but nothing shows up in the context, watch or stack tabs. The xdebug.log file is also empty. The following are my settings: php.ini [CUSTOM] error_reporting=1 display_errors=true track_errors=1 [xdebug ] zend_extension="/usr/lib/php5/20121212/xdebug.so" xdebug.remote_connect_back=1 xdebug.default_enable=1 xdebug.remote_autostart=0 xdebug.idekey

Trouble configuring xdebug for PhpStorm on XAMPP for Mac

一曲冷凌霜 提交于 2019-12-11 00:33:04
问题 I have followed instructions to install and configure PhpStorm visual debugger for Mac OS, using xdebug.org/wizard.php with the tailored instructions, and worked through every step. php -v shows: PHP 5.6.29 (cli) (built: Dec 8 2016 23:03:30) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Xdebug v2.5.0, Copyright (c) 2002-2016, by Derick Rethans in my php.ini (yes I verified this is the correct ini) [Xdebug] zend_extension =

Installing Xdebug on a remote server (bluehost.com)

社会主义新天地 提交于 2019-12-10 22:58:38
问题 I have xdebug installed and working on my mac but I can't seem to get it installed on my server ( a bluehost.com server). I have been trying for ages and would appreciate any help possible. Basically I have downloaded 'xdebug.so' and installed it in my /public_html/ directory I then go into my php.ini file (which is in the same directory) and I remove any other [zend] references and inserted the following: zend_extension=/home1/[myUserName]/public_html/xdebug.so zend_extension_ts = /home1/

Can not make PHP PDT xDebug to stop at breakpoints in Eclipse

ぐ巨炮叔叔 提交于 2019-12-10 22:36:49
问题 By choosing Break at First line, the debugger gets active when entering each file, allowing me to step in and out of the code. But it is a bit cumbersome having to tab your way through half a million steps to get to the point where it starts to get interesting. My setup is WIMP Window 7, PHP 5.3 ; xDebug config zend_extension = "C:\Program Files (x86)\PHP\v5.3\ext\php_xdebug-2.2.1-5.3-vc9-nts.dll" xdebug.remote_autostart=0; xdebug.remote_enable=On xdebug.remote_host="localhost" xdebug.remote

Nginx + php-fpm: Bad gateway only when xdebug server is running

对着背影说爱祢 提交于 2019-12-10 22:21:03
问题 Problem When xdebug server is running from IntelliJ IDEA, I get 502 Bad Gateway from nginx when I try loading my site to trigger breakpoints. If I stop the xdebug server, the site works as intended. So, I'm not able to run the debugger, but it did work previously (!). Not able to pinpoint why it suddenly stopped working. Setup A short explanation of the setup (let me know if I need to expand on this). My php app is running in a docker container, and it is linked to nginx running in a

PHP not loading xdebug when started from Eclipse PDT

江枫思渺然 提交于 2019-12-10 18:15:50
问题 Hei helping people! Some while ago I installed xdebug and had some trouble getting it to work — but I did. Now I tried starting debugging again, but it wouldn't work. If I call php -m or phpinfo() through the browser, it tells me that xdebug is loaded. But when I start phpinfo() as phpscript from Eclipse, it doesn't load. Also adding a line like xdebug_break() it'll tell me PHP Fatal error: Call to undefined function xdebug_break() in /home/andy/public_html/phpDebugTest/console.php on line 3

Mac上配置xdebug + NetBeans + Chrome

狂风中的少年 提交于 2019-12-10 17:18:30
php.ini zend_extension = xdebug.so xdebug.remote_enable = 1 xdebug.remote_handler = dbgp xdebug.remote_host = localhost xdebug.remote_mode = req xdebug.remote_port = 9008 xdebug.idekey=netbeans-xdebug 请注意: 1)第一行不是使用extension=...,而是 zend_extension =...。 2)port端口可以自定义,最好是9000以上,9000往往被占用。但是!一定要和NetBeans设置的端口一致。 NetBeans设置 Chrome安装插件Xdebug Helper http://www.cnplugins.com/devtool/xdebug-helper/ 设置idekey为netbeans-xdebug 装不了插件? Chrome无法安装crx插件的解决办法 - (最简单) - CRX_HEADER_INVALID https://blog.csdn.net/qq285744011/article/details/103462493 来源: CSDN 作者: Rudon滨海渔村 链接: https://blog.csdn.net/qq285744011

How to Turn On/Off Xdebug Profiling at Runtime?

假装没事ソ 提交于 2019-12-10 17:12:03
问题 I am currently using xdebug and experimenting with profiling and viewing w/ KCacheGrind. I have it set to only operate on trigger, i.e. passing XDEBUG_PROFILE=1 via GET . There is a lot of noise in the output concerning the framework I am using and would like to be able to specifically profile a chunk of my code, like a controller, rather than the entire request. Am I able to have xdebug profiling turned off until I choose to turn it on, like in a controller, and then turn it back off when I