Xdebug configuration with PHP fastcgi and eclipse? -


I have used Extles-PDT for more than a year without problems with xDebug and apache. The situation has worked lossless and I wanted all the interactive debugging I could get from within eclipse (using my own machine as a server). The

changed from now I Apache for Nginx (and therefore PHP no longer runs the Apache service, but fast-CGI) and Aksdebg I assume With no way to work well. I'm not sure that the problem is with xdebug or with eclipse (or both) to make sure.

In the eclipse configuration I have already changed the reference to the PHP configuration file in / etc / php5 /cli/php.ini .


Try with php.ini version 1

with the following php.ini file

  zend_extension = / usr / lib / PHP5 / 20,060,613 / xdebug.so  
  • I think xdebug (for example working if I have a var_dump () I do not plain PHP a) receive xdebug version of it
  • can not interactive debugging I assume with opens the browser and the pages are completely typical URL load ... XDEBUG_SESSION_START = ECLIPSE_DBGP & amp ;? Key = ... , but program execution breakpoints
  • Eclipse does not stop at the bottom-right corner I see a suspicious message: "launch = put_the_name_of_my_project_here =: 57%" < / Em> Options with that "Refresh Workspace" one.

Try with php.ini version 2

If I use this other version of the file (that is, until I nginx): < / p>

  zend_extension = / usr / lib / PHP5 / 20,060,613 / xdebug.so xdebug.remote_enable = xdebug.remote_handler = dbgp xdebug.remote_host = on = on xdebug.remote_autostart localhost xdebug.remote_port = 9000 xdebug .remote_mode = req  

I can not access any page of my site at all. PS: Additional data on my machine: - OS: GNU / Linux - Ubuntu 9.10 64 bit - PHP: 5.2.10- 2ubuntu6.3 Sohosine-Patch 0.9.7; Zed Engine v2.2.0, Copyright (C) 1998-2009 Zend Technologies with ExebUb v2.0.4 - Eclipse: See screenshots.

alt text

What BU said is right (can not vote because I am new!).

Generally, lines like adding (or php.ini) to /etc/php5/cgi/php.ini

  zend_extension = / PATH_TO / xdebug .so ## & lt; - the path xdebug.remote_enable = Note xdebug.remote_handler = dbgp xdebug.remote_host = Sthaniyhost xdebug.remote_port = 9900 ## & lt; - You probably have 9000 or more.  

works.

Then after the change,

  ./ php-fastcgi stop ./php-fastcgi start  

this works for me is.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -