> Date: Sun, 1 Mar 2009 13:36:59 -0600
> From: anthony[@]snow-blind.net
> To: derick[@]xdebug.org
> CC: paul.shoemaker[@]helloecho.com; xdebug-general[@]lists.xdebug.org
> Subject: [xdebug-general] Re: xdebug remote setup configuration
>
> 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.
>
> Anthony
>
>
One thing I noticed is that you said your only additions to the php.ini was xdebug.remote_debug=on and the zend_extension. You should be adding a xdebug.remote_host and xdebug.remote_port setting as well. By default the xdebugger will try to find the IDE on the localhost. By the sounds of it you have developers remotely so you would need to setup the remote_host. If you have more than one developer then you have to look into setting up a proxy but that would be a next step once you can get your one debug going.
-- Shawn Clark _________________________________________________________________ Chat with the whole group, and bring everyone together. http://go.microsoft.com/?linkid=9650735Received on Sun Mar 01 2009 - 22:49:28 GMT
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST