Xdebug only partially works

Hi!

I cant get xdebug to work with phpStorm 3.0.3, it works with netbeans so the config and network should be fine.

The path mapping is fine cause if I dont specify or specify it wrong I get an error. The problem is that nothing happends after opening the page, the page remains empty with a message (Google Chrome) "net::ERR_EMPTY_RESPONSE", I get this error when I'm listening to debug connections. When I switch this of the page loads normally.

When I dont have any remote debug servers configured and reload the webpage I get the screen "incoming connection from Xdebug" but then when i click accept nothing happends in phpStorm and the webpage goes blank (net::ERR_EMPTY_RESPONSE).

Any ideas?

I have phpinfo, xdebug log and xdebug config attached.

Thanks in advance.



Attachment(s):
xdebug_config.txt.zip
phpinfo.txt.zip
php_debug_log.txt.zip
0
17 comments

On line number 10 is the first function call btw.

0

Nevermind, I have it working now. The only thing is that my page still remains blank after the debug has finished, this is why i was confused. I don't have this problem with Netbeans and also not with another server in combination with phpStorm.

0

youri rhi,

The only thing is that my page still remains blank after the debug has finished, this is why i was confused.

Do you still have the issue?

Thank you for feedback!

0

Yes. The page stays blank after debugging. Dont have it with another server (virtual machine) so I guess its specific to the server im using.

0

youri,

so I guess its specific to the server im using.

What server do you use?

Thank you for feedback!

0

Just want to confirm that I am having the exact same issue. When I debug my script everything works as expected I can navigate though my code, however when the debugging ends I am left with a blank page in my browser.

I had this working fine the other day using what I believed was an identical setup until I got a new computer and reinstalled everything. Any ideas what could be the issue?

Thanks.

==============================================

Here is some extra information.

php.ini excerpt:

[Xdebug]
zend_extension="D:/www/php54/ext/php_xdebug-2.2.0RC1-5.4-vc9.dll"
xdebug.remote_host = localhost
xdebug.remote_enable = true
xdebug.remote_handler = dbgp
xdebug.remote_port = 9000
xdebug.remote_mode = req
xdebug.profiler_enable = true
;xdebug.remote_autostart = true
xdebug.idekey = PhpStorm1


Software versions:

PHP 5.4 - VC9 x32
Apache 2.2.22 - VC9 x32
Debugger: Xdebug 2.2.0RC1
Browser: Chrome
PhpStorm 3.0.3
OS: Windows 7 x64
0
Avatar
Matthias van den Elsacker

I'm having the EXACT same problem! The debugger works, my breakpoints are hit, I can step into the code,... But in the end I get a blank page in my web browser! Would love to see the solution to this problem. I need that Xdebugger quite badly :p

0

Matthias,

Have you tried rolling back to PHP 5.3 and xdebug 2.1.4 stable branch? Seems that 2.2 has issues with PHP 5.4 -- crashing or even unable to initiate debug session but working good using previous versions (have seen few confirmations already).

Also (regardless of PHP/xdebug versions) -- try debugging simple script (no database connections etc) to see what may be causing such behaviour -- so far it seems like xdebug issue.

0

Hi, David,

The issue is related to Xdebug 2.2.0RC1. See http://bugs.xdebug.org/view.php?id=810.

Thank you for feedback!

0

Andriy,

Thanks for your awesome assistance!:)

0

Hi, Matthias,

What is your OS, Xdebug version and PHP version? Most likely it is an Xdebug issue - see http://bugs.xdebug.org/view.php?id=810.

Thank you for feedback!

0

youri,

We've got some progress here - it could be related to PHP and Xdebug versions installed on your server. See http://bugs.xdebug.org/view.php?id=810.
What is your OS, Xdebug version and PHP version?

Thanks!

0

Sounds like a timeout issue.   On my test system I use fastcgi, so my setup is:

Browser <--> Apache <--> Fastcgi server

Apache has a default timeout on fastcgi connections, so after it times out, I can continue to debug[the fastcgi server doesn't give a damn and won't abort until it tries to send something to the apache server and discovers the connections is lost].

Upping the timeout is one solution.  I believe there is an xdebug function you can call to extend the timeouts.  Netbeans is probably pinging that function ever 5-10 seconds so the connection doesn't time out.

0

David,

The issue should be fixed in Xdebug 2.2.0RC2 (http://bugs.xdebug.org/view.php?id=813). Please try it and let me know if it works for you.

Thank you for feedback!

0

Matthias,

The issue should be fixed in Xdebug 2.2.0RC2  (http://bugs.xdebug.org/view.php?id=813). Please try it and let me know  if it works for you.

Thank you for feedback!

0

After upgraded xdebug to 2.2.1 it's work fine for me :)

0

Please sign in to leave a comment.