xdebug

xdegug cannot step to next line in php view

混江龙づ霸主 提交于 2019-12-05 20:48:18
I am using Eclipse for PHP Luna Service Release 1 (4.4.1), and try to install xdebug for debugging. I follow this blog for for setting xdebug on xampp 1.8.1. Follow is my php.ini settings. [XDebug] zend_extension = "C:\xampp\php\ext\php_xdebug.dll" xdebug.remote_enable = 1 xdebug.remote_handler = "dbgp" Basically it will stop on the break point i set, but then i press [F6], it will not go to next line. But in debug dialog window, line number keep going, and variables also change too. Does anyone knows what wrong on this? thanks. Yes, this seems to be a bug, I hit it after updating. It does

Installing xdebug on php 5.6 Amazon Linux AMI

依然范特西╮ 提交于 2019-12-05 20:16:02
I created an Elastic Beanstalk Environment ID_LIKE="rhel fedora" VERSION_ID="2016.03" PRETTY_NAME="Amazon Linux AMI 2016.03" ANSI_COLOR="0;33" CPE_NAME="cpe:/o:amazon:linux:2016.03:ga" HOME_URL="http://aws.amazon.com/amazon-linux-ami/" I'm trying to install xdebug using sudo yum install php-pecl-xdebug But I keep get the following error Loaded plugins: priorities, update-motd, upgrade-helper Resolving Dependencies --> Running transaction check ---> Package php-pecl-xdebug.x86_64 0:2.2.3-1.5.amzn1 will be installed --> Processing Dependency: php(api) = 20090626-x86-64 for package: php-pecl

enable xdebug on bluehost shared server

被刻印的时光 ゝ 提交于 2019-12-05 20:08:57
I want to setup phpunit on a demo site on a bluehost shared server. I want to check if the php codes work on the environment after I made modifications and added more components. With this, I need to set up xdebug. The problem is that my account is not allowed to download and install xdebug, I got permission denied. pecl install xdebug Then I read upon an answer here Xdebug for remote server not connecting . What I did is upload the xdebug.so file from my local, copy the /etc/php.ini to the server's public_html directory, and edited the php.ini file and and added the line below to refer to the

How can i get the PHP magic constant __FILE__ work with Eclipse and PDT

纵饮孤独 提交于 2019-12-05 17:42:09
问题 Lately when i was debugging some PHP file with XDebug (under Eclipse on Ubuntu) i came across a strange behaviour: print(__FILE__); resulted in "xdebug eval" GEE! So this magic constant seems not to work with this. Anyone know a fix or a viable workaround? How to debug the debugger? (Hardcoding a path is a PITA!) 回答1: The output you get is not incorrect. __FILE__ is a special constant that gets evaluated at parser time. When the PHP script gets compiled, it would really read something like

kali 开启xdebug

喜夏-厌秋 提交于 2019-12-05 17:33:24
1、安装xdebug 参考https://xdebug.org/docs/install 2、配置 # vi /etc/php/7.3/mods-available/xdebug.inizend_extension="/usr/lib/php/20180731/xdebug.so" xdebug.remote_enable = 1 xdebug.idekey = PHPSTORM # vi /etc/php/7.3/apache2/php.ini...;extension=pdo_firebird;extension=pdo_mysql;extension=pdo_oci;extension=pdo_odbc;extension=pdo_pgsql;extension=pdo_sqlite;extension=pgsqlextension=xdebug... 来源: https://www.cnblogs.com/zheh/p/11937291.html

Homestead 2 xdebug doesn't work

帅比萌擦擦* 提交于 2019-12-05 17:05:38
I have a Homestead vagrant VM setup. Xdebug is all setup for remote debugging out of the box. I can see this in here /etc/php5/fpm/conf.d/20-xdebug.ini and by doing a php -i | grep 'xdebug' I've setup a breakpoint in my default index.php and clicked the 'start listening for PHP debug connections' in my IDE PHPstorm. I have installed xdebug helper for chrome and turned it on, also setting my IDE string to PHPstorm in it's settings. I've tried setting different ports in both my IDE and xdebug settings. I've also tried listening to these ports with sudo nc -l 9002 on both host and guest machines,

PHP auto_prepend_file causes xdebug profiler to fail

给你一囗甜甜゛ 提交于 2019-12-05 16:57:15
I use xDebug 2.5.5 on a Windows 7 machine running Apache 2.4 and PHP 5.6. xDebug profiler works ok except when I use a php auto_prepend_file in php.ini auto_prepend_file = "C:\path\to\init.php" or in Apache Vhost php_value auto_prepend_file "C:\path\to\init.php" In either case, adding this directive will cause the generated profiler snapshot cachegrind.out.#### , to be corrupted somehow. I cannot open it either in PhpStorm (my IDE) or using WinCacheGrind . In addition, I cannot delete the snapshot until I kill the Apache process WinCacheGrind error Access violation at address 004A5908 in

`enable_query_strings` is Not Working Properly

血红的双手。 提交于 2019-12-05 16:32:54
I'm trying to use CodeIgniter, and xdebug. When I type in the following URL: http://localhost/redux/index.php xdbug works well. When I go to following URL: http://localhost/redux/index.php? I receive the following 404 error message: XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=124466969367132 Eclipse lanches Firefox with the second, wrong URL, and then I have to change it. I'm using enable_query_strings = TRUE , but I'm still getting the error. How do I solve this problem? To get this working perfectly, use: $config['uri_protocol'] = "PATH_INFO"; $config['enable_query_strings'] = TRUE; Make sure that

Apache stuck with working after Xdebug was installed. Ioncube loader error

别等时光非礼了梦想. 提交于 2019-12-05 16:28:08
I have a local installation of Ubuntu Server 12.10 via VirtualBox for my PHP programming purposes. Recently I've installed the Xdebug in this way: sudo apt-get install php5-xdebug Then added 'xdebug' path to my /etc/php5/apache2/php.ini: zend_extension=/usr/lib/php5/20100525+lfs/xdebug.so Then I restarted apache. And, it got stuck. My local sites are not loading. The 'php -v' (as well as 'php -m') says: PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0 Thing is that I don't have Ioncube installed. I tried to google this error

Docker, PhpStorm & Xdebug: Can't find source position error

本小妞迷上赌 提交于 2019-12-05 15:50:39
问题 I built an image that is based on a php:5.6-fpm-alpine image and I run a symfony-based application therefore I run both cli and web-based php scripts. So I spawned a shell over my running container via: docker exec -ti ^container_id^ /bin/sh And over the shell I exported the following enviromental variables: export PHP_IDE_CONFIG="serverName=0.0.0.0:5092" export XDEBUG_CONFIG="idekey=PHPSTORM" And the IDE has been setup as explained in the following links: Can't connect PhpStorm with xdebug