xdebug

Remote PHP Debugging with Netbeans and XDebug

荒凉一梦 提交于 2019-11-30 13:49:41
问题 I'm trying to use XDebug in the following scenario Physical Host on Windows 7, with Netbeans 7.1.1 Virtual guest on Ubuntu, with Apache server and PHP 5.3.10 the PHP code of my website is on a shared folder on Ubuntu, in /var/www/mysite the PHP code is accessible from my Windows host, on \\guestIP\mysite, with R/W permissions Website accessible from http://mysite.local.fr, from both host and guest I created a Netbeans project from my Windows Host, pointing to \\guestIP\mysite. In the project

php的yii2框架下开发环境xampp,vim,xdebug,DBGp的搭建

自作多情 提交于 2019-11-30 12:56:36
引言 Yii1.1的搭建过程见 这里 。下面做少许改动,加入 composer 部分,使之用于 Yii2 。 选择Linux桌面环境Deepin2014.3下开发网站的理由很简单,能截图,有搜狗输入法,可以WPS文档记录,终端下复制粘贴很容易,相比ubuntu,fedora死机次数少了,对,就是不用折腾,自带的。 一、vim和DBGp插件 Deepin2014.3简体中文,自带的vim7.4版本,很多配置已经很适合大陆的人使用了,比如Php和Python的调试支持等,不需要重新编译了。可以节省不少步骤。 这里 提供一个vim的配置文件,已经自带了DBGp这个vim的插件,在~文件夹下解压缩,得到.vim和.vimrc文件,就已经在~文件夹下了。 注意,复制之前做好你文件的备份,复制完毕后,命令 ls -la ~ 查看是否有.vim .vimrc这两个文件,还需要安装一下cscope和ctags,就可以了。你用vim随便打开一个文件,比如 vim test.php ,如果没有提示其他错误说明这个配置文件暂时适合你了。 二、xampp xampp专为php开发设计,需要的apache,mysql,php已经自带了。特别提醒,请下载PHP版本高于5.4支持Yii2.0的xampp。 这个网上很容易下到xampp for linux的版本,我下载的就是xampp-linux-x64-<>

vscode wsl php

非 Y 不嫁゛ 提交于 2019-11-30 12:49:01
WSL中已经安装好PHP, Apache, MySQL, 在/var/www/html中新建a.php <?php phpinfo(); ?> 访问127.0.0.1/a.php copy phpinfo 在页面上显示的html, 粘贴到 https://xdebug.org/wizard 的文本框中, 然后按照提示进行操作 在php.ini中添加 [XDebug] xdebug.remote_enable = 1 xdebug.remote_autostart = 1 code中安装PHP Debug 在code中打开/var/www/html/a.php, 可以写两句代码然后打个断点, 然后f5, 就ok了 来源: https://www.cnblogs.com/edhg/p/11588700.html

xdebug Time-out connecting to client. :-( using phpstorm 7.1.3/vagrant/virtualbox/magento

瘦欲@ 提交于 2019-11-30 12:13:06
For a while, I was using Phpstorm EAP, and had xdebug running perfectly. I recently purchased a personal license and imported all my settings from the EAP into 7.1.3. Now xdebug does not work. Here's xdebug.ini zend_extension=xdebug.so xdebug.remote_host = 192.168.56.1 xdebug.remote_cookie_expire_time = 36000 xdebug.remote_log = /tmp/xdebug.log xdebug.remote_port = 9000 xdebug.remote_handler = dbgp xdebug.remote_mode = req xdebug.remote_enable = 1 xdebug.remote_autostart = 0 xdebug.idekey="PHPSTORM" xdebug.scream=0 xdebug.remote_connect_back=1 xdebug.show_local_vars=1 xdebug is also showing in

Debug PHP with VSCode and Docker

流过昼夜 提交于 2019-11-30 12:01:11
问题 I'm trying to debug a PHP app running on Docker with VSCode, but without success. In the past I was able to easily debug my PHP apps with VSCode running WAMP Server, but since I started working with Docker I'm unable to get debug working. Searched for several tutorials online, checked some threads here on StackOverflow (ex.: Docker and XDebug not reading breakpoints VSCode), but I'm still not able to get this working. Dockerfile: FROM php:7.1.8-apache COPY /cms /srv/app/cms COPY .docker/cms

Can I manually say on xdebug profiler to start profiling in specific place?

北城余情 提交于 2019-11-30 10:48:41
问题 I already have enabled xDebug profiling in my XAMPP installation and it works fine. Now I like to ask if there is a way to say from within my source code when to start profiling with xDebug. More specific, I'd like to create a WordPress plugin, and I'd like to say, start profiling from the start point of the plugin and stop profiling at the end point of the plugin. Is that possible? Note: The above is just an example. It can be a CakePHP plugin or a new PHP Class that I may need to profile

Launch XDebug in Netbeans on an external request

杀马特。学长 韩版系。学妹 提交于 2019-11-30 10:20:31
问题 I'm using Netbeans 6.7 and XDebug to debug a PHP site on my machine, launching the request from within Netbeans (Project->Debug). This works fine, and is very useful. My question is: Is it possible to attach the debugger to any request that comes in, rather just those I launch from within Netbeans? ie, instead of clicking "Debug", put Netbeans into a mode whereby the debugger is launched and attaches to the next request that comes in. I have a feeling this may be a stupid question, but if it

PHP Xdebug on OS X 10.9 Mavericks

落花浮王杯 提交于 2019-11-30 10:13:36
问题 I'm having issues setting up my PHP development environment on OS X after installing OS X 10.9 Mavericks. Here is the command I am using to install. sudo pecl install xdebug downloading xdebug-2.2.3.tgz ... Starting to download xdebug-2.2.3.tgz (250,543 bytes) .....................................................done: 250,543 bytes 66 source files, building running: phpize grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zend_modules.h: No such file or

Xdebug - command is not available

≡放荡痞女 提交于 2019-11-30 09:00:59
问题 I'm debugging remotely my project in PhpStorm. IDE shows 'Connected' for a moment and immediately goes into 'Waiting for incoming connection...' Below is Xdebug log from this session I: Connecting to configured address/port: X.x.x.x:9000. I: Connected to client. :-) > <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///xxx/info.php" language="PHP" protocol_version="1.0" appid="4365" idekey="10594"><engine version="2.2.2"><![CDATA[Xdebug]]><

Remote PHP Debugging with Netbeans and XDebug

人盡茶涼 提交于 2019-11-30 08:51:51
I'm trying to use XDebug in the following scenario Physical Host on Windows 7, with Netbeans 7.1.1 Virtual guest on Ubuntu, with Apache server and PHP 5.3.10 the PHP code of my website is on a shared folder on Ubuntu, in /var/www/mysite the PHP code is accessible from my Windows host, on \\guestIP\mysite, with R/W permissions Website accessible from http://mysite.local.fr , from both host and guest I created a Netbeans project from my Windows Host, pointing to \\guestIP\mysite. In the project Run configuration, I have the following: Run as: Local web server Project URL: http://mysite.local.fr