xdebug issue with IIS and php 5.2 - php

I have searched for this question so far no success...
I am using php 5.2 (IDE:netbean) with IIS 8 as web server. I installed php_xdebug-2.2.2-5.2-vc9-nts xdebug.
Here is my php.ini changes:
zend_extension="C:\php\php_xdebug-2.2.2-5.2-vc9-nts.dll"
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
; Port number must match debugger port number in NetBeans IDE Tools > Options > PHP
xdebug.remote_handler=dbgp
xdebug.idekey="netbeans-xdebug"
then I restarted IIS; but when I copy paste html of phpinfo() in xdebug wizard I got below:
Summary
Xdebug installed: no
Server API: CGI/FastCGI
Windows: yes - Compiler: MS VC9 - Architecture: x86
Zend Server: no
PHP Version: 5.2.17
Zend API nr: 220060519
PHP API nr: 20060613
Debug Build: no
Thread Safe Build: no
Configuration File Path: C:\WINDOWS
Configuration File: C:\PHP\php.ini
Extensions directory: .
Instructions
Download
Move the downloaded file to .
Edit C:\PHP\php.ini and add the line
zend_extension = .\
Restart the webserver
it seems that xdebug was not installed successfully. any idea?

Related

Xdebug Profiler not working over apache

The issue is I get no output from Xdebug-Profiler if I request any page from my server over browser. If i call a script with php in terminal like
php /var/www/html/index.php
then the profiler's output will be created. So I guess my configurations are fine. Here the important setting from my phpinfo:
xdebug.profiler_aggregate Off Off
xdebug.profiler_append Off Off
xdebug.profiler_enable On On
xdebug.profiler_enable_trigger Off Off
xdebug.profiler_enable_trigger_value no value no value
xdebug.profiler_output_dir /home/duser/profiler /home/duser/profiler
xdebug.profiler_output_name testgrind.out.%t-%s testgrind.out.%t-%s
The output from https://xdebug.org/wizard.php for my phpinfo:
Xdebug installed: 2.5.4
Server API: Apache 2.0 Handler
Windows: no
Zend Server: no
PHP Version: 5.6.30
Zend API nr: 220131226
PHP API nr: 20131226
Debug Build: no
Thread Safe Build: no
Configuration File Path: /etc
Configuration File: /etc/php.ini
Extensions directory: /usr/lib64/php/modules
You're already running the latest Xdebug version
I have read a lot of topics here, where people had similar problem and it was often rights issue. Therefore i created the profiler folder in my home directory with rights like:
drwxrwxrwx 2 duser duser 140 30. Jun 07:02 profiler
The server is running on Centos 7, SELinux is disabled. The Xdebug-debugger works fine. Any help will be appreciated.
The issue was, apache had no access to my /home/duser/profiler folder. The output from xdebug has to be saved in /var/www/html/ or the configuration needs adjustment, so that apache will have access to specific path.

xdebug 2.5.1 not work on PHP version: 7.0.15-0 ubuntu0.16.04.4

Below is my /etc/php/7.0/cli/php.ini
[XDebug]
zend_extension = /usr/lib/php/20151012/xdebug.so
xdebug.remote_enable = on
xdebug.remote_connect_back= on
xdebug.remote_autostart = on
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM
I cannot enable the xdebug.remote_enable why? And I cannot debug as normal. Anyone know what's problem with xdebug?
Xdebug installed: 2.5.1
Server API: Command Line Interface
Windows: no
Zend Server: no
PHP Version: 7.0.15-0
Zend API nr: 320151012
PHP API nr: 20151012
Debug Build: no
Thread Safe Build: no
Configuration File Path: /etc/php/7.0/cli
Configuration File: /etc/php/7.0/cli/php.ini
Extensions directory: /usr/lib/php/20151012

XDEBUG 2.3.3 not showing in phpinfo() no matter what (XAMPP 1.8.2 PHP 5.4.31 )

I've read every post out there (I think), and after 2 days hunting this I am still stuck. The goal is to use xDebug with Eclipse, but I cannot get past loading xDebug in the first place.
I am using XAMPP 1.8.2 with PHP 5.4.31, and per XDEBUG analyzer (below) downloaded the file suggested.
Tailored Installation Instructions
Summary
Xdebug installed: no
Server API: Apache 2.0 Handler
Windows: yes - Compiler: MS VC9 - Architecture: x86
Zend Server: no
PHP Version: 5.4.31
Zend API nr: 220100525
PHP API nr: 20100525
Debug Build: no
Thread Safe Build: yes
Configuration File Path: C:\Windows
Configuration File: C:\xampp\php\php.ini
Extensions directory: C:\xampp\php\ext
Instructions
Download php_xdebug-2.3.3-5.4-vc9.dll
Move the downloaded file to C:\xampp\php\ext
Edit C:\xampp\php\php.ini and add the line
zend_extension = C:\xampp\php\ext\php_xdebug-2.3.3-5.4-vc9.dll
Restart the webserver
I have edited php.ini in my XAMPP (located in C:\xampp) with the following:
[XDebug]
zend_extension = C:\xampp\php\ext\php_xdebug-2.3.3-5.4-vc9.dll
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9001
I see no errors in any logs for my Apache server. What am I missing?

xDebug and old wamp server with MS VC6

Can you tell me, why i don't get xDebug extension in y PHP extensions list?
Wamp>PHP>PHP extensions is not xDebug.
PHP version:
Windows: yes - Compiler: MS VC6 - Architecture: x86
Zend Server: no
PHP Version: 5.3.5
Zend API nr: 220090626
PHP API nr: 20090626
Debug Build: no
Thread Safe Build: yes
Configuration File Path: C:\Windows
Configuration File: C:\wamp\bin\apache\Apache2.2.17\bin\php.ini
Extensions directory: c:\wamp\bin\php\php5.3.5\ext
The compiler (MS VC6) that this PHP was build with, is no longer supported. Please upgrade to a version that was built with MS VC9.
So i download: Xdebug 2.1.2, PHP 5.3 VC6 (32 bit) (MD5: adb792dc75c79384f987061f12e0934a)
Copy files to ext folder, add this lines into php.ini file:
[Xdebug]
zend_extension = "c:/wamp/bin/php/php5.3.5/ext/php_xdebug.dll"
xdebug.remote_enable=1
;IP
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.auto_trace = On
xdebug.show_exception_trace = On
xdebug.remote_autostart = On
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On
What's wrong?
This works fine me:
[XDEBUG]
zend_extension="c:/path/to/your/extensions/php_xdebug-2.1.2-5.3-vc6.dll"
xdebug.remote_enable=true
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
The crucial part for me was that I used zend_extension_ts instead of zend_extension.
You might also want to make sure you are changing the correct version of php.ini. For command line PHP this can be obtained buy running this command:
php -i | findstr -i php.ini
Look for "Loaded Configuration File" line.

Install xdebug 2.1.4 on ubuntu server 5.3.6-13ubuntu3.6

I have tried to install xdebug on my ubuntu server machine and it's not working. The reason I know it's not working is that the output of var_dump is not colorized, nor can I connect to it using netbeans.
I followed the tailored instructions on how to install xdebug on
http://xdebug.org/wizard.php
Here is what the output of my phpinfo analysis was:
Xdebug installed: no
Server API: Apache 2.0 Handler
Windows: no
Zend Server: no
PHP Version: 5.3.6-13
Zend API nr: 220090626
PHP API nr: 20090626
Debug Build: no
Thread Safe Build: no
Configuration File Path: /etc/php5/apache2
Configuration File: /etc/php5/apache2/php.ini
Extensions directory: /usr/lib/php5/20090626
The name of the file that wizard recommended was xdebug-2.1.4.tgz
The output of phpize was
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
My phpinfo now does show xdebug installed, here is how it looks like:
Here is what I have in my php.ini
zend_extension = /usr/lib/php5/20090626/xdebug.so
xdebug.profiler_output_dir = "/var/log/apache2/xdebug"
xdebug.profiler_output_name = "cachegrind.out.%p"
xdebug.profiler_enable =1
xdebug.profiler_append=1
xdebug.extended_info=1
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_mode=req
xdebug.remote_host=192.168.2.13
xdebug.remote_port=9000
;xdebug.idekey=xdebug
xdebug.idekey=netbeans-xdebug
xdebug.remote_connect_back=1
xdebug.remote_log="/var/log/apache2/xdebug_remote.log"
xdebug.show_exception_trace=0
xdebug.show_local_vars=9
xdebug.show_mem_delta=0
The output of lsb_release -a on my computer is
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
PHP version shown on phpinfo is 5.3.6-13ubuntu3.6
For the colours, you probably want to set html_errors=1 in php.ini as well.
As for the netbeans issue (you really should not combine issues in one question!), which IP addresses do your machine running PHP, and which IP address does your machine running netbeans have? The xdebug.remote_host setting should contain the IP address of the one running netbeans. The remote log file that you're generating should have connection attempts in it too.

Categories