xdebug

Why is xdebug not showing up in phpinfo()

耗尽温柔 提交于 2019-12-04 19:13:42
问题 I am trying to get the following to setup work: Windows 7 - 64-bit XAMPP 1.7.4 XDebug [php_xdebug-2.1.0-5.3-vc9-x86_64.dll] When I run phpinfo() from Xampps homepage, XDebug it is not listed anywhere. I checked the Apache error logs and there are no errors, so it seems to load the module without problem? I haven't used PHP in years so I have no clue why this isn't working. [PHP.ini] [XDebug] zend_extension_ts = "C:\xampp\php\ext\php_xdebug-2.1.0-5.3-vc9-x86_64.dll" xdebug.remote_enable = 1

Visual Studio Code PHP Debug does not stop on breakpoints for Docker project

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 19:12:56
I cannot get the VS Code extension "Php debug" to stop on any breakpoints. I am running the php project (that I want to debug) from Docker on my Ubuntu laptop. Any advice greatly appreciated. My set up: PHP version on Docker: 7.1 XDebug version on Docker: 2.6.1 PHP Debug version in VS Code (on my laptop): 1.12.6 My VS Code launch.json file is: { "version": "0.2.0", "configurations": [ { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": 9000, "log": true, "pathMappings": { "/var/www/html": "/home/chris/my-test-debugging-project" } }, { "name": "Launch currently open

从谷歌浏览器发送xdebug请求

大憨熊 提交于 2019-12-04 18:53:00
一直以来使用xdebug+eclipse调试php都是从浏览器上复制url来进行的 ,但是这样做很麻烦,更换一个页面就要在eclipse上开启一个debug。(因为是使用域名定位到本机的方式开发,就是修改hosts文件,这样无法直接从eclipse启动脚本调试) 一天偶然在逛chrome web strore的时候发现一个叫xdebug helper for chrome的插件,插件说明的大义是可以从chrome对IDE发起xdebug请求。 可能是本人对xdebug的研究不够彻底,研究了很久才搞清楚这个插件如何使用。 使用步骤: chrome浏览器安装xdebug helper插件 在eclipse中找到 preferences->php->debug->installed debugger,在管理界面上双击xdebug,将accept remote session(JIT)修改为localhost chrome浏览器上需要调试的站点,地址栏右边会有一个小虫子,点击,变为绿色的就是启动,允许发送调试请求。然后刷新页面,eclipse就会自动进入调试状态 注:accept remote session(JIT)默认为off,就是不允许接收外部请求,localhost为接收本地请求,any为接收所有请求(远程地址的调试请求),prompt为接收所有请求,但会提示是否接收 来源:

Ubuntu phpstorm : Interpreter is not specified or valid

淺唱寂寞╮ 提交于 2019-12-04 18:16:29
问题 I am configuring debugger on phpstorm on Ubuntu. I easily could set interpreter's path like C:xampp/php properly on Windows. But linux should have different path for interpreter. I searched on this site a lot and on google too but could not get the answer. What should be php's interpreter path so that phpstorm recognizes it and thus i can do debugging? Anything missing?? Thanks. 回答1: I think there's been a misunderstanding. include path should point to a folder containing PHP files, not PHP

Is there any KCacheGrind alternative for Mac Os X outta there?

醉酒当歌 提交于 2019-12-04 16:17:27
问题 I'm looking for a KCacheGrind alternative, or at least a binary package for Mac Os X? I'd to use KCacheGrind with XDebug for PHP, but Mac Os X is the right environnement here... Thank you Edit: I know I can use MacPort but I'm looking for an alternative of this painful installation. Maybe something "in the mac way" 回答1: You can install KCacheGrind using MacPorts: sudo port install valgrind kcachegrind4 There are also some alternatives like: WebGrind qcachegrind ( brew install qcachegrind );

How to debug symfony in Netbeans? I cannot call specific pages

家住魔仙堡 提交于 2019-12-04 15:57:38
I've already read posts like Passing PHP arguments into NetBeans into a page that features symfony url-routing but I cannot make things work. I would like to run the following page: http://localhost/s/web/frontend_dev.php/travel So I tried first the "Local Website Configuration" with Netbeans 6.9.1. As stated in the linked thread there is an issue here since I can point to the project url and to the "web/frontend_dev.php" index file but I am not able to have "/travel" as an argument since Netbeans always prefixes it with ? for parameter passing which I don't want. I the mentioned thread the

VScode - PHP - xdebug环境安装

六眼飞鱼酱① 提交于 2019-12-04 15:40:31
需求 VScode - PHP - xdebug环境安装 环境:xampp+php7.3.9 步骤 xampp的php目录加入环境变量,这样的话在cmd可以随时调用 命令行下使用PHP -i 输出 phpinfo()内容 xDebug 下载 链接: https://xdebug.org/download.php 如果你不知道如何下载对应的xdebug版本 复制你的phpinfo()内容到这个网页中,自动帮你分析如何下载以及安装 https://xdebug.org/wizard 例如我的,然后跟着这个向导安装即可 最后在你的php.ini 文件中加入配置文件即可 [xdebug] zend_extension = "D:\xampp\php\ext\php_xdebug-2.8.0-7.3-vc15-x86_64.dll" xdebug.remote_enable = 1 xdebug.remote_autostart = 1 xdebug.remote_handler = "dbgp" xdebug.remote_host = "localhost" xdebug.remote_port = "9001" 来源: https://www.cnblogs.com/QinTO/p/11871782.html

How do I set up PHP profiling on Eclipse?

时光总嘲笑我的痴心妄想 提交于 2019-12-04 15:38:33
I have set up Eclipse PDT on Galileo. I'm able to run and debug PHP sites that are set up on XAMPP. The thing is, I want to profile one of the sites, but cannot for the life of me figure out how to set this up. There is a profiling menu when I right-click the PHP project, but no indication of how to proceed from there. BTW I'm using Xdebug as the debug engine. I came across the solution to my real problem: Getting Xdebug to output profiling files. As @"ZZ Coder" has mentioned, you don't really need Eclipse to profile PHP. I checked the Xdebug source files and realized that the filename format

xdebug.so: undefined symbol: zend_ce_error

二次信任 提交于 2019-12-04 14:41:40
I need debug old php version: PHP 5.6.22 (cli) (built: Jun 29 2016 14:26:09) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies On Ubuntu: Ubuntu 16.04 LTS I compiled appropriate PHP, and checked out xdebug from git repository: git://github.com/xdebug/xdebug.git I tried different versions, but just master seems compiling. In my errors I have: Failed loading /usr/share/php53/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so: /usr/share/php53/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so: undefined symbol: zend_ce_error I know that

Using Xdebug when the php application sits behind Varnish

房东的猫 提交于 2019-12-04 13:50:49
I'm trying to set up Xdebug remote debugging to a site sitting behind Varnish as a caching layer using PHPStorm. Varnish is sitting as a frontend on port 80 with Apache talking to it as a backend on port 8080. If I bypass Varnish and talk directly to the site on port 8080 Xdebug and Phpstorm work as expected, however then I'm not really testing the system properly - what I really need to do is trigger a debug session even when the request is proxied through Varnish. Obviously I'm not expecting cached content to trigger a debug session, but uncached content still should. My Xdebug settings are