xdebug

Using xdebug through Docker container in PhpStorm

a 夏天 提交于 2019-12-10 15:46:14
问题 I've read some posts about this but none helped in my case or simply overlooked the missing piece. I cannot get xdebug to work on PhpStorm using a Docker container. Docker-compose.yml version: '2' services: web: image: nginx:latest volumes: - .:/usr/share/nginx/html - ./nginx/nginx.conf:/etc/nginx/nginx.conf - ./nginx/logs:/var/logs/nginx - ./nginx/site-enabled/default.conf:/etc/nginx/sites-enabled/default.conf ports: - "80:80" depends_on: - php db: image: mysql:5.7 environment: MYSQL_ROOT

Two versions of PHP on Mac OS Snow Leopard & Installing xdebug using PECL

ⅰ亾dé卋堺 提交于 2019-12-10 15:19:20
问题 I was using MAMP (standard) for PHP Development for some times before I read some posts about built-in Apache/PHP on Snow Leopard . I decided to shift to those I am provided with but seems to have many problems. The first thing is when I was using MAMP, I upgraded PEAR from 1.9.0 to 1.9.1 (to install PHPUnit later) with reference from this post. It worked well for me with the phpunit command. I also have Xcode4 but removed it few weeks ago (I mention this because I don't know what could be

How much does Xdebug profiling inflate the real execution time?

ぐ巨炮叔叔 提交于 2019-12-10 15:14:19
问题 I have an Xdebug cachegrind file in webgrind showing that 1061 different functions were called in 5865 milliseconds - when I disable profiling the script doesn't take that many milliseconds - I realize I could work this out but does anyone know the approximate percentage increase in execution time caused by Xdebug profiling? Thanks 回答1: It's really difficult to say a specific number or percentage since that depends in the type and quantity of function calls, variables used and options you set

lnmp+xdebug配置简单过程

*爱你&永不变心* 提交于 2019-12-10 14:04:39
ubuntu 12.04LTS环境: nginx 配置安装 安装依赖: libssl-dev libpcre3-dev 编译配置: wget http://nginx.org/download/nginx-1.5.4.tar.gz sudo ./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-debug sudo make sudo make install mysql 安装 179M(不需要configure) 安装依赖: libaio-dev sudo useradd --no-create-home --no-log-init --shell=/bin/false mysql cd xxx/mysql/script sudo ./mysql_install_db --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql sudo ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql 作链接 若启动mysqld_safe守护进程时错误done掉,查看Log时显示 /usr/local/mysql/bin/mysqld: Can't create/write to

Why does PHPUnit show some close-curly-braces as not being covered?

我们两清 提交于 2019-12-10 13:07:39
问题 I'm using PHPUnit 3.6.7, PHP_CodeCoverage 1.1.1, and Xdebug 2.1.2. When I have PHPUnit write my code coverage statistics to a clover-style XML file, it occasionally shows a close-curly-brace as not being covered by tests. I see a lot of discussion online of when PHPUnit is "reaching" the close curly-braces, but I don't understand the general concept of what's going on. For example, I have zero coverage on one line here: if (is_array($foo)) { foreach ($foo as $bar) { if (property_exists($bar,

Debugging a SOAP service using xDebug

删除回忆录丶 提交于 2019-12-10 12:54:20
问题 Is there a way to debug a SOAP service that we publish ideally with integration into an IDE allowing me to step through the code. 回答1: With a bit of inspiration from this article I've come up with a solution that allows me to call the service from SoapUI and step through the code in my IDE (PhpStorm). The key is to alter a part of the WSDL that gets generated, in particular the <soap:address> node. This has a location attribute to which I append ?XDEBUG_SESSION_START=netbeans-xdebug . Clearly

PHP parser for cachegrind files?

你说的曾经没有我的故事 提交于 2019-12-10 12:46:10
问题 Is there such a thing? I'm on windows and using the WinCacheGrind app and it doesn't seem to work with large files (~2 MB). I get errors like "cannot find call target". Do you know any parser for such files written in PHP that can help me build my own cachegrind analyzer? 回答1: i am not sure if that is possible in PHP, but can try http://sourceforge.net/projects/precompiledbin/, if you just want to read cachegrind files, KCacheGrind actually works on linux but someone has ported it to run on

How to debug in PHPStorm with built in webserver using Symfony command line tool

非 Y 不嫁゛ 提交于 2019-12-10 12:39:11
问题 I was able to set up a php web app debugger in PHPStorm by simply tying it to my localhost at a specific port and everything works fine. However for that to work I need to first run this command on the shell: php app/console server:run --env=dev This works just fine if I set up breakpoints for browsing the site itself or testing api calls from a browser based rest client like postman However I'm trying to actually set breakpoints for my mobile app (the mobile app sends http calls to the

PhpStorm Xdebug Frames and variables are not available

我的梦境 提交于 2019-12-10 12:18:46
问题 I installed PhpStorm and Xdebug. When I'm trying to debug in a PhpStorm, not on a web page the debugger doesn't work. I added the following code in php.ini [Xdebug] zend_extension = "C:\xampp\php\ext\php_xdebug-2.8.0-7.2-vc15.dll" xdebug.remote_enable = 1 I also downloaded "php_xdebug-2.8.0-7.2-vc15.dll" and put it in C:\xampp\php\ext folder. 来源: https://stackoverflow.com/questions/58679777/phpstorm-xdebug-frames-and-variables-are-not-available

run xdebug with sublime text 2

不羁岁月 提交于 2019-12-10 11:27:26
问题 so im trying to get sublime text 2 to run along with x-debug i have installed the Kindari-SublimeXdebug and i have wamp (i have enabled xdebug ) here is the php.ini configuration ; XDEBUG Extension zend_extension = "c:/wamp/bin/php/php5.3.10/zend_ext/php_xd ebug-2.1.2-5.3-vc9-x86_64.dll" [xdebug] xdebug.remote_enable = On xdebug.profiler_enable = On xdebug.profiler_enable_trigger = On xdebug.profiler_output_name = cachegrind.out.%t.%p xdebug.profiler_output_dir = "c:/wamp/tmp" xdebug.remote