xdebug

XDebug profiling in PHP - can't get output

六眼飞鱼酱① 提交于 2019-11-30 23:48:41
问题 I've got a strange issue. I've setup XDebug to profile a PHP application we're working on. I believe everything is setup correctly but I get no output when I run it. My configuration looks like this: zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so [XDebug] xdebug.profiler_append = 1 xdebug.profiler_enable = 0 (I've tried this both on and off) xdebug.profiler_enable_trigger = 1 xdebug.profiler_output_dir = "/debug/xdebug/profiler_output_dir" xdebug.profiler

How to integrate Xdebug 2.2.3 (PHP 5.53) with PhpStorm 7.0

扶醉桌前 提交于 2019-11-30 22:51:30
How do I integrate Xdebug 2.2.3 (PHP 5.53) with the new PhpStorm 7.0? The official documentation doesn't provide a step-by-step process. My default setups MAMP 2.2. Installation directory is "default". Phpstorm 7.0. The basic config are done as per guided by the online doc. A Phpstorm project has been setup with sample codes ready for debugging. Chrome browser is used. Feel free to contribute if you would like to share on other browsers. Configuring php.ini in MAMP to enable Xdebug Open /Applications/MAMP/bin/php/php5.4.4/conf/php.ini. Do remember to open the correct directory corresponding to

PHP开发环境搭建

你说的曾经没有我的故事 提交于 2019-11-30 22:35:09
0.软件准备 软件介质:idea 2018版本、Wampserver 64位版本 1.给idea安装php插件 依次进入File-->Settings-->Plugins-->Browse repositories下,搜索php插件,并安装之;装完插件需要重启idea; 2.给idea做php配置 1)依次进入File-->Settings-->Languages & Frameworks-->PHP下,设置PHP language level、CLI interpreter(两处设置版本需要对应起来); 2)在Debug目录下,有Xdebug属性,设置其Debug port(ps:该端口需要和Wampserver中php版本的php.ini文件的端口配置一致); 3)在Debug目录下,有DBGp Proxy属性,分别设置IDE key(此key需要和php.ini文件中的key配置相同)、Host(同前)、Port(同前); 4)在步骤(1)的目录下,有servers属性,添加一个server,Name随意、host(同前)、port(填写服务上默认端口,若未修改,默认是80)、Debugger(选择Xdebug) 3.给Wampserver做配置 1)Wampserver中集成了多个版本的php,选择步骤2->(1)设置的版本进行配置 2)配置php.ini,其中idekey

XDebug configuration missing from php.ini in XAMPP

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 22:01:16
I've just installed the latest XAMPP for PHP 5.6 from the official website, and I need to enable Xdebug, I find that the file php_xdebug.dll exists in the C:\xampp\php\ext , but there is no [XDebug] config at all in the php.ini and I have no idea how to make it work. It should be installed by default and pre-configured, we need just to uncomment the xdebug config in php.ini but it's not the case. I even tried to install it again using PECL commmand pecl install xdebug but I get the following error : pecl install xdebug downloading xdebug-2.5.0.tgz ... Starting to download xdebug-2.5.0.tgz (267

How to add add request parameter to every Angular.js $http request (to start a xdebug session for example)

泪湿孤枕 提交于 2019-11-30 21:23:45
My hybrid application is based on AngularJS and uses a php REST api. I would like to debug the php api directly from my Angular app instead to use REST console or Postman. It would save a lot of time especially for POST and PUT requests. In order to do so I would need to add a parameter to each request like so: http://localhost:8000/api/contacts?XDEBUG_SESSION_START=PHPSTORM Can I config $http to do so? You can use httpInterceptor for that (official $http documentation contains more info) // register the interceptor as a service $provide.factory('xdebugInterceptor', function($q) { return { //

Xdebug configuration with PHP fastcgi and eclipse?

喜欢而已 提交于 2019-11-30 19:31:07
I have been using eclipse-pdt in conjunction with xdebug and apache without problems, for over one year. Things worked flawlessly and I could do all the interactive debugging I wanted from within eclipse (using my own machine as a server). Now I switched from apache to nginx (and therefore PHP runs now not as an Apache service but as fast-cgi) and I can't find a way to configure eclipse to work nicely with xdebug. I am neither sure if the problem is with xdebug or with eclipse (or both) to be sure. In the eclipse configuration I already changed the reference to the PHP configuration file to

How to enable xdebug with nginx?

跟風遠走 提交于 2019-11-30 17:48:27
My situation is the following: I have a VM (Ubuntu server 13.04) with PHP 5.4.9-4ubuntu2.2, nginx/1.2.6, php5-fpm and Xdebug v2.2.1. I'm developing an app using PhpStorm 6.0.3 (which I deploy on the VM). My problem is, whenever I try to start a debugging session, the IDE never gets a connection request from the webserver (And thus, the session never starts). I looked through a lot of recommendations about xdebug configuration and found nothing useful. What I recently realized is that if I set the XDEBUG_SESSION cookie myself through the browser (Thanks FireCookie) I can debug my app... so my

XDebug configuration missing from php.ini in XAMPP

旧巷老猫 提交于 2019-11-30 17:43:38
问题 I've just installed the latest XAMPP for PHP 5.6 from the official website, and I need to enable Xdebug, I find that the file php_xdebug.dll exists in the C:\xampp\php\ext , but there is no [XDebug] config at all in the php.ini and I have no idea how to make it work. It should be installed by default and pre-configured, we need just to uncomment the xdebug config in php.ini but it's not the case. I even tried to install it again using PECL commmand pecl install xdebug but I get the following

Does xdebug beautify var_dump?

ε祈祈猫儿з 提交于 2019-11-30 17:24:28
According to this article, http://devzone.zend.com/article/2803 , var_dump is supposed to beautify the outputs. I have installed xdebug on my local host with PHP Version 5.3.3-1ubuntu9.2. I have this in my php.ini outputs. This program makes use of the Zend Scripting Language Engine: Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans However when I use var_dump(), nothing changes. Does xdebug really beautify the var_dump outputs? If so, how can I fix it? This is my details of xdebug in php.ini xdebug xdebug support

Setting Xdebug breakpoints solely in command line

被刻印的时光 ゝ 提交于 2019-11-30 15:57:17
I'm struggling with a PHP maintenance script and I was looking for a way to use xdebug solely in command line (like gdb old-school), but I couldn't figure out how to set a breakpoint, do a step-into, step-over and continue. Xdebug is up and running, as phpinfo(); says. I found a lot of documentation regarding how to do this using Eclipse and other tools, but none to CLI. Could anyone help me? My environment is Centos 6 and Bash. Any help is appreciated. Thank you! This is actually possible. In the Xdebug source downloads, you will find a directory called "debugclient". In this directory you