Hi Derick,
Thanks for your quick response.
I removed the last four configuration arguments from php.ini and also the
stray ';' (seems I was on autopilot when I added those!).
The xdebug remotes settings are now as below:
xdebug.remote_enable=On
xdebug.remote_host=localhost
I used the floowing command to set the environemtn variable:
set XDEBUG_CONFIG="idekey=netbeans-xdebug"
And then echoed out the result:
echo %XDEBUG_CONFIG%
output: "idekey=netbeans-xdebug"
I downloaded and used the 'simple client'. That connects as expected (giving
the XML specified in the documentation).
Given that Xdebug is making the connection to the simple client and I can
see that the correct session ID in the output XML I'm guessing that the
problem lies with either Netbeans or my configuration of Netbeans.
Do you concur?
Also, are there any netbeans users on the list that could share there CLI
debugging configs with me? It works fine when debugging sites, connections
issues occur only on the CLI.
Thanks,
Ben
On Thu, Aug 12, 2010 at 11:38 AM, Derick Rethans <derick[@]xdebug.org> wrote:
> On Thu, 12 Aug 2010, Ben Waine wrote:
>
> > I hope someone can help, I'm having some difficulty using remote
> debugging
> > with netbeans on the windows 7 (professional) CLI.
> >
> > I'll outline the process I have gone through thus far:
> > *
> > 1) Set up php.ini:*
> >
> > xdebug.remote_enable=On;
> > xdebug.remote_host=localhost;
> > xdebug.remote_port=9000;
> > xdebug.remote_handler="dbgp";
> > xdebug.remote_mode=req;
>
> You don't need the last four, also, perhaps the ";" at the end is
> crating havoc? Did you check whether the settingsare made correctly?
>
> > *6) In the CLI set environment variable*:
> >
> > At this step i have tried both:
> >
> > set XDEBUG_CONFIG="idekey </docs/all_settings#idekey>=netbeans-xdebug"
> >
> > and
> >
> > set XDEBUG_CONFIG=idekey
> <../../docs/all_settings#idekey>=netbeans-xdebug"
>
> Your HTML mail client mangled this. Correct is:
> set XDEBUG_CONFIG="idekey=netbeans-xdebug"
> (or whatever netbeans wants; I've no idea whether windows can deal with
> this syntax though.
>
> >
> > *7) Execute PHP script: *
> >
> > php xdebugtest.php
> >
> > output: 5
>
> Can you check with some tool from sysinternals.com that Xdebug actually
> tries to make the connection? And does the simple client work? (See:
> http://xdebug.org/files/debugclient-0.9.0.exe) (For that to work, you
> need to not run netbeans of course).
>
> Derick
>
> --
> Like Xdebug? Consider a donation: http://xdebug.org/donate.php
> Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
> twitter: @derickr and @xdebug
>
Received on Thu Aug 12 2010 - 11:56:41 BST
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST