xdebug

Xdebug ignores breakpoints

不问归期 提交于 2019-11-27 13:12:51
I am currently trying to get Xdebug to work on our development server. As client I am using netbeans and the connection so far works without problems. But when I try to set a breakpoint within netbeans it is just getting ignored. And yeah, I already googled for hours and also found some questions here that perfectly fit my description: SO 1 SO 2 But this does not seem to solve it for me. The Xdebug module is loaded via zend_extension=path/to/xdebug. so in the /etc/php5/conf.d/xdebug.ini I also looked at the php5/apache and php5/cli php.ini to make sure it is not loaded with extension=

Installing xdebug on MacOs Mojave - 'php.h' file not found

 ̄綄美尐妖づ 提交于 2019-11-27 12:17:03
问题 I try to install xdebug on MacOs Mojave but get this error /private/tmp/pear/install/xdebug/xdebug.c:25:10: fatal error: 'php.h' file not found Command Line Tools are installed. 回答1: I ran into this trying to compile xdebug on my system, I had to do the following to get it to work 1) (Re)install the command line tools (I had installed them at one point, but the files under /Library/Developer/CommandLineTools/ were missing so I must have deleted it...) xcode-select --install 2) Reinstall the

Xdebug trace GUI? [closed]

女生的网名这么多〃 提交于 2019-11-27 11:21:18
问题 I'm trying to find a GUI to parse and view Xdebug trace files . Although you can make them human readable, the sheer number of lines makes it unusable. I'm looking for something like KCachegrind but for a trace file. My main goal behind all this is to find what the memory hogs are. 回答1: I found this to be pretty solid. Maybe it's serviceable to you, too: https://github.com/corretge/xdebug-trace-gui 回答2: I found this one: xdebug trace file parser. 回答3: I just using started xdebug today came

How to debug PHP with netbeans and Xdebug

断了今生、忘了曾经 提交于 2019-11-27 10:35:27
问题 I have recently tried to get going with Netbeans 6.5 after it rated so highly in the IDE review by Smashing magazine. http://www.smashingmagazine.com/2009/02/11/the-big-php-ides-test-why-use-oneand-which-to-choose/ My main reason for switching from Notepad++ is that I'd like to be able to debug my code and set through it. I have followed the instructions about how to install xdebug from both the vendor http://xdebug.org/ and the netbeans web site. http://www.netbeans.org/kb/docs/php/debugging

PhpStorm + Xdebug: Connection established, no Debug window popup in PhpStorm

感情迁移 提交于 2019-11-27 09:51:53
I'm struggling to get PhpStorm and Xdebug to play nicely on a specific Vagrant VM. How can I effectively track down and resolve the issue in connecting PhpStorm and Xdebug for this VM? While I can see that PhpStorm and Xdebug are communicating to a degree, the connection from Xdebug does not launch PhpStorm's debug window, and it's not possible to use PhpStorm's debugging capabilities. The combination of tools in question is: Vagrant VM with Ubuntu 16-04 PHP 7.1 with php-xdebug 2.7 PhpStorm 2018.2.1 Firefox Xdebug Helper extension Drupal 8.6.10 Breakpoint is inserted in index.php at line 16. I

Is it possible to use xdebug on Ubuntu?

二次信任 提交于 2019-11-27 09:32:02
问题 I am trying to debug some PHP code and wanted to download the XDebug debugger for PHP. All I see there is Windows binaries for downloading. Is it at all possible to use it on Ubuntu? 回答1: Execute the following commands in your terminal. Download Xdebug - you will need to follow alternate instructions if you don't have PHP5 working on your machine already. sudo apt-get install php5-xdebug The package should modify your INI file for you, but just in case you need to edit it yourself open it up

PHP on Windows with XAMPP running 100 times too slow

谁说胖子不能爱 提交于 2019-11-27 09:14:55
PHP runs so slowly on my Windows desktop that phpMyAdmin takes minutes to open a database. Here’s a comparison of the time to run a simple PHP test program: Windows 8.1 machine running XAMPP: 3597 ms iPage shared hosting: 65 ms A2Hosting shared hosting: 26 ms Here’s the test program… <?php $rStartTime = microtime(true); $countTo = 100000; $a = 0; //$countTo = $countTo * 100; for ($x = 0; $x <= $countTo; $x++) { $a = sqrt(pow($x, 2)); } $rMs = floor((microtime(true) - $rStartTime) * 1000); echo 'timer done, countTo=' . $a . ' ms=' . $rMs; The test program is run without debugging, by entering "

How to setup Docker + PhpStorm + xdebug on Ubuntu 16.04

穿精又带淫゛_ 提交于 2019-11-27 09:07:28
My problem is that xdebug doesn't work when I start listening port. I think PhpStorm can't link with xdebug. I just get debugger panel variables are not available. It's looks like xdebug have not correct settings. Software and versions used: Ubuntu 16.04 LTS Docker v 17.06 docker-compose 1.15 So I was trying many times setup xdebug + Docker + PhpStorm but cannot do it. I've read many tutorials but nothing haven't helped me. My docker-compose.yml looks like this: version: '3' services: web: image: nginx:latest ports: - "80:80" restart: on-failure volumes: - "./etc/nginx/default.conf:/etc/nginx

kali 开启xdebug

十年热恋 提交于 2019-11-27 08:59:12
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...# vi /etc/php/7.3/apache2/php.ini...; 最后添加[xdebug]xdebug.remote_enable=Onxdebug.remote_host=192.168.2.81xdebug.remote_port=9000... 来源: https://www.cnblogs.com/zheh/p/11937291.html

Can't connect PhpStorm with xdebug with Docker

假如想象 提交于 2019-11-27 08:49:00
问题 I have the following Dockerfile: FROM php:7.0-fpm-alpine RUN apk add --update --virtual build_deps gcc g++ autoconf make &&\ docker-php-source extract &&\ pecl install xdebug &&\ echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_autostart=0" >> /usr/local/etc/php/conf.d/xdebug.ini &&\ echo "xdebug.remote_connect_back=1" >> /usr