xdebug

How to prevent Netbeans 8 from stopping on the first line when debugging a PHP Application

旧巷老猫 提交于 2020-01-15 18:50:13
问题 I'm working on a PHP application for a web server in Netbeans 8.0.1. I've installed XAMP/Apache Server/XDebug and can run and debug the application. When I debug the project in Netbeans, the debugger breaks at the beginning of each php file. This is very annoying and interrupts the process of debugging. How can I disable this feature? 回答1: Go to Netbeans -> Tools -> Options -> PHP -> Debugging, and uncheck the 'Stop at First Line' checkbox. 来源: https://stackoverflow.com/questions/28528819/how

Geting the private ip for the docker network from within the container to configure xdebug remote_host

本小妞迷上赌 提交于 2020-01-15 10:25:07
问题 So using docker and docker-compose I like to provide tools built into the containers so that other people in the development team don't have to struggle with setting up bits and bobs. In this specific case I'm having issues configuring xdebug. It works absolutely fine using connect back when debugging from a browser. But trying to get xdebug working through the cli inside the container is being an absolute nightmare. For some reason it requires (along with remote_autostart=1) the remote_host

使用vs code写php及调试

雨燕双飞 提交于 2020-01-14 13:38:07
原文来自:http://www.cnblogs.com/CLR010/p/5276077.html 首页先改下php.ini 一般是在最底部,有就修改没有就加上去下面的配置: xdebug.remote_enable = on xdebug.remote_autostart=on    1、首先官网下载vs code 地址:https://code.visualstudio.com/ 2、安装扩展php-debug安装步骤见 https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug 具体为:(Ctrl+p)在文本框输入“ext install php-debug”回车等下就会出现此扩展 上图右下角有个下载按钮(截图为已经下载所以显示x) 3、配置用户设置 弹出下面窗口,然后将 "php.validate.executablePath": "C:/wamp/bin/php/php5.5.12/php.exe" 添加进去 4、配置debug 选择listen for xdebug (配置文件内容不需要动) 5、启动wampserver 6、打开php文件,在指定行按F9设置断点然后启动调试 7、在浏览器访问即可 来源: https://www.cnblogs.com/ashidamana/p

Debug Symfony2 in Docker with PhpStorm and Xdebug

三世轮回 提交于 2020-01-13 11:34:13
问题 I'm trying to debug a Symfony app with PhpStorm by following this tutorial: https://gist.github.com/chadrien/c90927ec2d160ffea9c4 I did exactly the same but it does not work well. php-fpm: build: ./php container_name: php-fpm-symfony links: - db ports: - 9000:9000 - 8448:8448 - 8000:8000 working_dir: /var/www/html/ volumes: - ../:/var/www/html volumes_from: - data tty: true env_file: - ./docker.env environment: XDEBUG_CONFIG: remote_host=192.168.0.176 Dockerfile # XDEBUG RUN yes | pecl

Xdebug doesn't work in MAMP

自闭症网瘾萝莉.ら 提交于 2020-01-13 10:15:32
问题 I have MAMP with PHP 5.5.3 installed. The ending of my php.ini file (MAMP/conf/php5.5.3/php.ini) is this: [OPcache] zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/opcache.so" opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1 [xdebug] xdebug.default_enable=1 xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote

PHP Debug in Visual Studio Code breaks on every exception

假装没事ソ 提交于 2020-01-13 09:43:07
问题 I am just starting to use the PHP Debug extension in Visual Studio Code (Ubuntu 14.04). It mostly works fine for me, but I have a problem that every time an exception is thrown, the debugger automatically breaks. We have lots of exceptions which are internally caught and handled in our code, so I don't want to have to step through each of these. I've been trying to find something like the Exception Settings in Visual Studio 2015, but can't find any equivalent options within Visual Studio Code

Making PHP performance profiling predictable

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-13 03:25:07
问题 I'm using xdebug with PHP to do some performance profiling. But when I run the same script more than once, I often get very different times. So it's hard to know how much faith to put in the results. Obviously there's a lot happening on a machine that can affect PHP's performance. But is there anything I can do to reduce the number of variables, so multiple tests are more consistent? I'm running PHP under Apache, on Mac OS X. 回答1: Reduce the number of unrelated services on the box as much as

WAMPSERVER2.2 无法启动的解决!

偶尔善良 提交于 2020-01-12 09:16:35
  这段时间在学习PHP网站建设,一直都在用WAMPServer2.2网站服务器,使用起来很方便,而且WAMPServer2.2还配置了XDEBUG调试工具,无需自己安装其他插件就可以正常使用了,一直用起来很顺手。可是今天我来到网吧上网,准备调试一个小程序,一安装WAMPServer2.2就发现安装完后无法启动了。出现状况是这样的:点击桌面WAMPServer图标准备启动网站服务器,任务栏右下角WAMPServer图标闪了一下就消失了,没能启动起来。看了一下本机电脑的端口,80和3306端口都未被占用,很是纳闷。在网上查了一下其他出现相关原因的资料,弄了好半天没能解决。于是想WAMPServer2.2版本用不了就用WAMPServer2.1试试看能不能用,天是卸载了再装上WAMPServer2.1,竟然可以正常使用,没什么毛病,我又郁闷了,WAMPServer2.1都可以使用那么怎么WAMPServer2.2用不了。于是又WAMPServer2.1卸载了装上WAMPServer2.2,一样的情况,还是启动不了。我放弃了,装备在WAMPServer2.1装上个XDEBUG插件,在装XDEBUG插件的时候才突然想起来,XDEBUG的DLL分VC6和VC9编译的,看了一下PHP.ini文件,XDEBUG配置信息如下: zend_extension = "c:/wamp/bin/php

XAMPP can not install xdebug

耗尽温柔 提交于 2020-01-12 05:13:05
问题 Hello I have installed xampp, changed the php.ini to this: [XDebug] zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.3-5.3-vc9.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "C:\xampp\tmp" xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable = 0 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.trace_output_dir = "C:\xampp\tmp" So I created a php file: <?php phpinfo(); ?>

PHP runtime error

有些话、适合烂在心里 提交于 2020-01-11 13:30:09
问题 I'm programming PHP for some time. I use an Windows XP SP3 with PHP 5.4 , SQlite 3 , Apache 2.4 as a development environment. The remote host server (not mine) is a Windows Server 2008 with PHP 5.3 , Apache 2.2 , IIS 7.0 and SQL Server 2008 . My editor is the simple and wonderful EditPlus . Concerning Javascript it's nice because of Firefox plus the great add-on FireBug , which allows for complete HTML + CSS + Javascript debugging. My problem is PHP error management in my development