Enabling remote debugging crashes web application.

When I enable remote debugging I get several errors.  I've attached two images, and my logs from PhpStorm.

Additional Information:

  • Webserver - Arch Linux VM
  • As a sanity check, I tried to remote debug with Netbeans; it worked fine.
  • I can create a simple php file (a couple of echos and meaningless assignments), and it will debug fine.


Thank you for your time and help!

Tony



Attachment(s):
debugging_log.txt.zip
network_errors.png
console_errors.png
12 comments
Comment actions Permalink

Hello, Tony

Sorry for delay.

What is your PhpStorm and Xdebug versions? I looked into your log and it seems that your issue is related to Xdebug evaluation features (which is mostly resolved in Xdebug 2.1.3 and Xdebug 2.1.4).
Please provide also your xdebug remote log (see http://xdebug.org/docs/remote#remote_log).

Thank you for feedback!

0
Comment actions Permalink

Thanks for the response, Nickolay.

I can't get it to generate an Xdebug log.

Here's my config:

[xdebug]
zend_extension=/usr/lib/php/modules/xdebug.so
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_connect_back=1
xdebug.remote_log="/var/log/xdebug.log"



I debug some code remotely, step over some functions, and let the execution finish.  Then, when I go to /var/log/ there is never an xdebug.log file.

Thanks for your help.

P.S. For what it's worth, I did a PECL installation of xdebug.
0
Comment actions Permalink

Okay, apparently xdebug must not be able to write to /var/log.  I set it to log to /tmp and I'm getting the file now.  I've attached it.

Thanks!

Tony



Attachment(s):
xdebug.log.zip
0
Comment actions Permalink

Hello Tony,

Sorry for delay.

I  looked into your xdebug remote log and it seems that it doesn't contain a  record of a session where xdebug crashes. Please ensure that your  xdebug crash when logging is enabled.

Thank you for feedback!

0
Comment actions Permalink

Hi, Nikolay.

Xdebug doesn't crash, the web application does.  I *think* the issue is mainly isolated to Ajax calls.  The pages load, but when the Javascript components try to make an Ajax call to the php processors, the requests fail.

I'm sorry I don't have any more information than that.  I've gone through my Apache error log a hundred times, and I can't find a server side error.

Thanks for your help,

Tony

0
Comment actions Permalink

Tony,

Do you still have the issue?

Thank you for feedback!

0
Comment actions Permalink

Yeah.  I've tried changing my network setup too.  It still happens.

0
Comment actions Permalink

Tony,

What is your PhpStorm version? I'll try to reproduce the issue.

As a sanity check, I tried to remote debug with Netbeans; it worked fine.

Does the issue appear with PhpStorm only?

Thank you for feedback!

0
Comment actions Permalink

Yes.  Remote debug works fine with Netbeans.

0
Comment actions Permalink

Hi, Tony,

Recently we've discovered some critical issues in Xdebug, which was fixed in Xdebug 2.2.0RC2 (http://bugs.xdebug.org/view.php?id=813, http://bugs.xdebug.org/view.php?id=814). Please try to update your Xdebug version.

Thank you for feedback!

0
Comment actions Permalink

Nikolay, that did it!

Remote debug seems to be working now!

Thank you for you patience and persistence,

Tony

0
Comment actions Permalink

Tony,

Please note that Xdebug 2.2.0RC2 have some issues as well. Please upgrade to the stable version when it will become available.

Thank you for feedback!

0

Please sign in to leave a comment.