MantisBT - Xdebug
View Issue Details
0001585XdebugRemote Debuggingpublic2018-10-31 12:362018-11-21 10:00
nikeos 
derick 
normalminoralways
resolvedfixed 
WindowsWindows 8.1
2.7.0beta1 
 
Windows 8.1
7.3-dev
0001585: Hung out on step over for PHP7.3 + Nginx + Windows 8.1
Trying to debug php script run as phpfcgi with nginx on windows.
Catching request from browser and stoping on first line is ok. But debug hunging out after firts step. Connection still opened but nothing happens. Any errors in php or nginx error logs.
Install configure and run php-fcgi with nginx (https://www.nginx.com/resources/wiki/start/topics/examples/phpfastcgionwindows/ [^])
Run php-fcgi
Run nginx
Start listening port
Run script debugging
Stop on first line
Press F8 (Step Over)
Tools:
Nginx 1.15.5
PHP 7.3 (7.3.0RC4) VC15 x64 Thread Safe
Xdebug 2.7.0beta1 - PHP 7.3 VC15 TS (64 bit)
PHPStorm 2018.1.6 (Build #PS-181.5281.35, built on June 14, 2018)
Windows 8.1

nginx.conf

worker_processes 1;
error_log logs/error.log notice;
pid logs/nginx.pid;
events {
    worker_connections 1024;
}

http {
    include mime.types;
    default_type application/octet-stream;
    sendfile on;
    keepalive_timeout 65;
    proxy_buffer_size 128k;
    proxy_buffers 4 256k;
    proxy_busy_buffers_size 256k;
    fastcgi_buffer_size 128k;
    fastcgi_buffers 4 256k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_read_timeout 300;
    
    server {
        listen 80;
        server_name localhost xxx.local www.xxx.local;
        access_log logs/access.xxx.local.log combined;
        error_log logs/error.xxx.local.log notice;
        root "d:/xxx/src/web";
        index index.php index.html;
        location / {
            root "d:/xxx/src/web";
            index index.php index.html;
            try_files $uri $uri/ /index.php;
        }
        location ~ \.php$ {
            root "d:/xxx/src/web";
            include C:/programs/nginx-1.15.5/conf/fastcgi.conf;
            fastcgi_pass 127.0.0.1:9123;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME
 $document_root$fastcgi_script_name;
        }
    }
}

XDebug config in attached php.ini file
No tags attached.
? php.ini (74,277) 2018-10-31 12:36
https://bugs.xdebug.org/file_download.php?file_id=440&type=bug
Issue History
2018-10-31 12:36nikeosNew Issue
2018-10-31 12:36nikeosFile Added: php.ini
2018-11-02 12:18nikeosNote Added: 0004719
2018-11-02 13:09nikeosNote Added: 0004720
2018-11-02 20:54nikeosNote Added: 0004721
2018-11-05 10:08nikeosNote Added: 0004722
2018-11-21 10:00derickNote Added: 0004726
2018-11-21 10:00derickStatusnew => resolved
2018-11-21 10:00derickResolutionopen => fixed
2018-11-21 10:00derickAssigned To => derick

Notes
(0004719)
nikeos   
2018-11-02 12:18   
Replaced Nginx by Apache 2.4.37 and checked xDebug behavior. Nothing changes. Still Time-out connecting to client.
(0004720)
nikeos   
2018-11-02 13:09   
Finally:

1. php-7.1.23-Win32-VC14-x64 + php_xdebug-2.6.1-7.1-vc14-x86_64.dll
2. php-7.2.11-Win32-VC15-x64 + php_xdebug-2.6.1-7.2-vc15-x86_64.dll
Both works fine with apache and nginx.

1. php-7.1.23-Win32-VC14-x64 + php_xdebug-2.7.0beta1-7.1-vc14-x86_64.dll
2. php-7.2.11-Win32-VC15-x64 + php_xdebug-2.7.0beta1-7.2-vc15-x86_64.dll
3. php-7.3.0RC4-Win32-VC15-x64 + php_xdebug-2.7.0beta1-7.3-vc15-x86_64.dll
Throw: Time-out connecting to client.

P.S. Maybe it's a problem of PHPStorm not xDebug but i have no idea how to check it.
(0004721)
nikeos   
2018-11-02 20:54   
UPD.

Problem localized.
In PhpStorm library (c:\Program Files\JetBrains\PhpStorm 2018.2.5\plugins\php\lib\php.jar) hardcoded "http://xdebug.org/dbgp/xdebug" [^] but not "https://xdebug.org/dbgp/xdebug" [^]

Seems it not work after xdebug commit on Sep 20, 2018 "Change http://xdebug.org [^] to https://xdebug.org [^] everywhere"
(0004722)
nikeos   
2018-11-05 10:08   
UPD

https://xdebug.org/dbgp/xdebug [^] - return 404
(0004726)
derick   
2018-11-21 10:00   
I ran into this myself, and found out it was a bug in PhpStorm: https://youtrack.jetbrains.com/issue/WI-43622 [^] — their latest EAP version has it fixed, and can be downloaded from https://www.jetbrains.com/phpstorm/nextversion/ [^]

As this is not a bug in Xdebug, I will be closing this report. I will make sure that URL exists though (and redirects to https://xdebug.org/docs-dbgp.php [^]). Thanks for filing it!