[xdebug-general] Re: xdebug remote setup configuration

From: Anthony Nelson <anthony[@]snow-blind.net>
Date: Sun, 01 Mar 2009 13:36:59 -0600

Derick Rethans wrote:
> On Tue, 24 Feb 2009, Anthony Nelson wrote:
>> Paul Shoemaker wrote:
>>> On Tue, Feb 24, 2009 at 11:22:39AM -0600, Anthony Nelson wrote:
>>>> I am currently trying to setup a remote xdebug server for php debugging
>>>> via netbeans. The server is a centos linux server with apache2, php
>>>> 5.1.6 and xdebug 2.0.4 installed via pecl.
>>>> The php.ini configuration I currently have is just the zend_extension
>>>> and the remote_debug=on. Xdebug seems to be working as the normal
>>>> functions like the var_dump replacement and the error stack messages are
>>>> replaced by the xdebug equivalent, but I am unable to get breakpoints to
>>>> work via netbeans or the eclipse editors.
>>>> When I try and set a breakpoint, it opens the correct page to debug, but
>>>> it doesn't wait at any of the breakpoints. It just loads the whole page
>>>> and the editor sits and waits for a response.
>>>> Any help or ideas with setting this up would be greatly appreciated.
>>> I would recommend setting up a log in your php.ini and perhaps tailing
>>> that. Below is the instruction to do that. Be sure to restart apache
>>> afterwards. If you still have questions can you please tail the log and
>>> paste the contents here?
>>> Also, are you using the activestate proxy or is this a standard debug
>>> session?
>>> xdebug.remote_log = location/to/log
>> Nothing gets written to the file.
> Make sure the webserver user has write permission to that location
> though, and use an absolute path. Another thing you should check is
> whether you have Xdebug loaded as Zend Extension.
> regards,
> Derick
I was writing to /tmp and all the users had write access. I did put the
reference as a full path /tmp/xdebug.log.

I set it up using zend_extension=/path/to/xdebug.so. As I said before,
the other non-interactive parts of xdebug work like the reformat of the
var_dump and the error messages. I just can't seem to find a way for it
to respond to a remote debug session. I'm not sure what other steps to
go through to verify this.

Thanks for the tips.

Received on Sun Mar 01 2009 - 21:07:39 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST