xdebug

Komodo IDE 8.5 + PHP Xdebug调试环境配置

人盡茶涼 提交于 2019-12-05 15:20:31
用的WAMP直接搭的Windows 8 + Apache 2.4.4 + MySQL 5.6.12 + PHP 5.4 开发环境(不得不说很方便、省时间),IDE用的Komodo IDE 8.5.1。 安好WAMP整个开发环境就差不多了,因为要使用xdebug 调试PHP(类似C/S模式),所以要对Komodo 进行一些配置,整个过程如下: Komodo => Edit => Preferences => Lasnguage => PHP,进行如下图配置 注意 解释器选择php-cgi.exe(php做脚本用这个),PHP配置文件用apache的bin目录下的(wamp用这个的)。 Komodo => Edit => Preferences => Debugger 有个地方如图 选择直接运行到第一个断点处,否则只要有请求就从php文件的首部中断,很蛋疼的。 Komodo => Edit => Preferences => Debugger => Connection 选第二个指定端口,默认9000,这个要在后面配置中用到。 编辑 apache目录下的bin里的php.ini文件,末尾[xdebug]内的注释掉,添加如下几行 xdebug.remote_enable = on xdebug.profiler_enable = on xdebug.profiler_enable

How to get __debugInfo to work with XDebug?

人走茶凉 提交于 2019-12-05 13:17:14
It seems __debugInfo does not work when xdebug overwrites var_dump . Is there anyway to make this work? I am using PHP 5.6.0 and XDebug 2.2.5 This is now fixed in Xdebug - soon to be released: https://github.com/xdebug/xdebug/commit/14159486d8d77732b5ae193ca9431bae80c94074 来源: https://stackoverflow.com/questions/26835450/how-to-get-debuginfo-to-work-with-xdebug

xdebug var_dump function colors

谁都会走 提交于 2019-12-05 12:09:55
I have installed xdebug on my computer with windows and it works fine by default - traces are colorfull and pretty but on another computer with ubuntu 10.10 its colourless and without any formatting. I tryed fill xdebug formatting parameters in php.ini but it didn't work for me :( What I need to make for improving output formatting? I faced this problem once upon a time and turned out to be : open php.ini and look for html_errors in your case it should be off , so simply turn it on and restart your apache and you would be good to go :) 来源: https://stackoverflow.com/questions/4534312/xdebug-var

Installing XDebug in Docker

◇◆丶佛笑我妖孽 提交于 2019-12-05 10:56:37
I'm trying to install the XDebug in a Docker container, but I'm getting the following error: E: Unable to locate package php-xdebug This is my Dockerfile: FROM php:7.0-apache RUN a2enmod rewrite RUN docker-php-ext-install pdo pdo_mysql RUN apt-get install php-xdebug -y COPY php.ini /usr/local/etc/php/ COPY . /var/www/html/ When I'm running the same command in my computer, the XDebug is getting installed without any error: apt-get install php-xdebug Does anyone know where the problem might be? Thank you in advance! I solved this by adding the following lines into my Docker file: FROM php:7.0

How tell PHPStorm debugger, that my project has document root other than project root

Deadly 提交于 2019-12-05 09:35:57
I'am trying to set up PHPStorm with xdebug. Everyting launches fine, but breakpoints just do not work and have "x" symbol on them. I'm using openserver with PHP 5.4 and editing files directly on the local web server, so no file mapping is necessary. I think, that my problem is that web server root is located below the project root directory (for security reasons) and PHPStorm does not that. Project root: C:\OpenServer\domains\mysite Web server root (configured in nginx): C:\OpenServer\domains\mysite\httpdocs How do I tell PHPStorm, that the index.php that webserver runs is actually C:

How can I make NetBeans not stop on the first line with xdebug?

混江龙づ霸主 提交于 2019-12-05 09:21:47
问题 I'm using NetBeans 6.5 for developing PHP and I have xdebug setup. Is there a way I can tell it not to stop on the first line of the file on every request? JIT mode won't fix this because I don't want it to stop on every exception that I catch. 回答1: I just found my answer, you go to Tools > Options > PHP (section) and there is a checkbox for "stop at the first line" 回答2: For Mac users, you go to the Netbeans > Preferences... and find it under the PHP section 来源: https://stackoverflow.com

Xdebug with XAMPP in Ubuntu 14.04

本小妞迷上赌 提交于 2019-12-05 08:19:31
System Configuration Ubuntu 14.04 Xampp v 5.6.3 installed php5-dev after xampp on sudo /opt/lampp/lampp start now want to install Xdebug wihin xampp and I tried available 3 method but nothing is working out , please see the whole process. 1)Ubuntu software package sudo apt-get install php5-xdebug command exceuted successfully but no such file in .usr/lib/php5/... uninstalled 2)Tailored Installation Instructions downloaded xdebug.tar.gz after checking with wizard ice@cold:~/Downloads/xdebug-2.2.6$ /usr/bin/phpize5 /usr/bin/phpize5 Cannot find config.m4. Make sure that you run '/usr/bin/phpize5'

Can't install Xdebug on XAMPP and Windows XP

﹥>﹥吖頭↗ 提交于 2019-12-05 07:18:09
I know, this has been asked several times, but the answers did not solve my problem. I am running XAMPP 1.8.2 on Windows XP SP3 and am struggling in installing XDebug. I downloaded XDebug from the website. Unfortunately, the installation wizard did not work for me, my PHP Version is 5.4.16, so I chose the file for PHP 5.4 VC9 TS (32 bit) . I configured my php.ini according to different tutorials: [XDebug] zend_extension_ts = "D:\Stefan\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9.dll" xdebug.remote_enable = On xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.remote_mode=req

mysqli_affected_rows() returns -1 but query works

坚强是说给别人听的谎言 提交于 2019-12-05 06:39:24
问题 All my mysql functions seem to be having this problem. The simple insert statement works, but when I check the affected rows, it returns -1 . This works, a new row is inserted into the database with it, but debugger shows the mysqli_affected_rows as -1 , and therefore the else block gets run: $query = "INSERT INTO users (email, password) VALUES ('$email', '$password')"; mysqli_query($this->connection, $query) or die('Query failed in register.'); if (mysqli_affected_rows($this->connection)>0)

Wordpress开发一:PHP语法学习,开发工具和开发平台的搭建

痴心易碎 提交于 2019-12-05 04:48:01
1 学习网站 基础语法: https://www.runoob.com/php/php-tutorial.html 2 开发工具PHPSTORM https://www.jetbrains.com › phpstorm https://github.com/ewen0930/PhpStorm-Chinese 汉化 3 开发平台搭建 PHP + APACHE + Mysql + XDEBUG + 第三方平台工具(XAMPP XDebug) https://www.youtube.com/watch?v=EF69-8WBJGA 安装 XAMPP XDEGUG https://dev.mysql.com/downloads/installer/   MYSQL下载 + navicat https://www.navicat.com.cn/ https://blog.csdn.net/yinhangbbbbb/article/details/79247331 最详细的phpstorm+xdebug调试详细教程,没有之一 https://xdebug.org/download https://xdebug.org/wizard 推荐用后面这个来寻找自己适合的版本 来源: https://www.cnblogs.com/1cup/p/11907153.html