PHPStorm6 and XDebug
Hi,
I have a promblem, that debugging is not possible.
Please see my configs and tell me how to start XDebug working with PHPStorm6.
I'm running on Windows7 64 / nginx / php-cgi 5.3.22
PHP 5.3.22 (cli) (built: Feb 20 2013 17:30:55)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
nginx conf:
...
fastcgi_pass 127.0.0.1:9009;
all my PHP scripts work fine.
Now XDebug
php.ini
[XDebug]
zend_extension = D:\WWW\PHP\ext\php_xdebug-2.2.1-5.3-vc9-nts.dll
xdebug.remote_enabled=1
xdebug.overload_var_dump=1
xdebug.var_display_max_depth=20
xdebug.var_display_max_data=4096
xdebug.var_display_max_children=4096
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey="PHPSTORM"
xdebug.remote_handler=dbgp
xdebug.remote_autostart=1
I have read this article: http://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm
and simple start PhpStorm6 and press "Start Listen PHP Debug Connections"
Then, I setup COOKIE for my webpagin throug your bookmarklet (in Firebug I see, that this cookie is sent to server)
Cookie PHPSESSID=hg63fc5e6j772mje5f02ou5c14; XDEBUG_SESSION=PHPSTORM
I set breakpoint in my script, but nothing happened.
Nothing like "The “Incoming Connection” dialog should appear automatically."
How to know, what should I do?
Screenshot from PhpStorm Configuration:
Attachment(s):
s4.jpg
s3.jpg
s2.jpg
s1.jpg
Please sign in to leave a comment.
Hi Maxim,
As I understand you have everything running on your Windows computer (no remote/virtual server) -- is this correct?
I've never worked with nginx, so not so sure about all of this. Any way
You should not need any cookie / bookmarklet when you have xdebug.remote_autostart=1. In any case -- I recommend disabling this option (= 0) as sometimes (for some users -- often) it causing issues -- better use bookmarklet / browser extension for initiating debug session.
> As I understand you have everything running on your Windows computer (no remote/virtual server) -- is this correct?
yes. Local Win7 64 machine.
xdebug
Nothing happened. :(
You should not need any cookie / bookmarklet when you have xdebug.remote_autostart=1. In any case -- I recommend disabling this option (= 0) as sometimes (for some users -- often) it causing issues -- better use bookmarklet / browser extension for initiating debug session.
Autostart is disabled with no changes.
PHPStorm is the one who actually listen 9000 port. See attach from tcpview.
I've restared all: nginx, php-cgi, phpstorm many times with no changes.
PHPStorm doesn't offer me any dialog window to start debug, and it doesn't stop at any breakpoint
Attachment(s):
t2.jpg
t1.jpg
Hi Maxim,
That simply means that it does not receive xdebug connection (xdebug is the one who creates connection to IDE not other way around)
xdebug.remote_enable must be enabled (set to 1 / On)
Thanks. In php.ini was xdebug.remote_enabled=1
Now it works!