Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PDT - (x)debug local PHP script
PDT - (x)debug local PHP script [message #61695] Tue, 27 November 2007 20:17 Go to next message
Johan Vandeweerd is currently offline Johan VandeweerdFriend
Messages: 3
Registered: July 2009
Junior Member
Hello all

I'm trying to debug a local php script. PDT, PHP, xdebug etc are all
installed and I can use xdebug to do remote debugging of websites. But now
I try to debug a local script with XDebug.

When I add a script for debugging, the debugger doesn't stop and just runs
the script.

What I did was:
* Open Debug Dialog
* double clicked on PHP script
* Entered a name
* Choose Xdebug as debugger (PHP executable is set correctly)
* Selected the PHP file
* Tried with and without break at first line

Is there something special you need to do to debug a local script with
XDebug?

Thanks in advance
Johan Vandeweerd

XDebug 2.0.2
PHP 5.2.4
PDT 1.0 20070910
Mac OsX Leopard/WinXP
Apache 2.2.6
Re: PDT - (x)debug local PHP script [message #61812 is a reply to message #61695] Wed, 28 November 2007 17:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dkel50.hotnospmail.com

Hi Johan, The first thing to check is whether xdebug is actually
configured. try running phpinfo in your script and checking the output.
The ini file it says that it is using will be in some temporary
directory which is a modified copy of the one found in the same
directory as the php executable.

Dave Kelsey

Johan Vandeweerd wrote:
> Hello all
>
> I'm trying to debug a local php script. PDT, PHP, xdebug etc are all
> installed and I can use xdebug to do remote debugging of websites. But
> now I try to debug a local script with XDebug.
>
> When I add a script for debugging, the debugger doesn't stop and just
> runs the script.
>
> What I did was:
> * Open Debug Dialog
> * double clicked on PHP script
> * Entered a name
> * Choose Xdebug as debugger (PHP executable is set correctly)
> * Selected the PHP file
> * Tried with and without break at first line
>
> Is there something special you need to do to debug a local script with
> XDebug?
>
> Thanks in advance
> Johan Vandeweerd
>
> XDebug 2.0.2
> PHP 5.2.4
> PDT 1.0 20070910
> Mac OsX Leopard/WinXP
> Apache 2.2.6
>
Re: PDT - (x)debug local PHP script [message #61881 is a reply to message #61812] Thu, 29 November 2007 21:00 Go to previous messageGo to next message
Johan Vandeweerd is currently offline Johan VandeweerdFriend
Messages: 3
Registered: July 2009
Junior Member
Thanks for the reply.

When I create a php script with the following:

<?php
phpinfo();

and right click on it, select run as and select php script, it shows
Configuration File (php.ini) Path => /usr/local/php5/lib
which is the same as the apache uses. I can't find anyt temporary php.ini.

When I run php -m from the commandline, xdebug is shown in the section of
the Zend Modules.

Any suggestion or anything I can try or do?

Thank in advance
Johan Vandeweerd
Re: PDT - (x)debug local PHP script [message #61904 is a reply to message #61881] Fri, 30 November 2007 12:55 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
try copying the php.ini file to where the php executable is and see if it works.
Also run your phpinfo under debug and check that xdebug is listed in the output.

Regards
Dave Kelsey

Johan Vandeweerd wrote:
> Thanks for the reply.
>
> When I create a php script with the following:
>
> <?php
> phpinfo();
>
> and right click on it, select run as and select php script, it shows
> Configuration File (php.ini) Path => /usr/local/php5/lib
> which is the same as the apache uses. I can't find anyt temporary php.ini.
>
> When I run php -m from the commandline, xdebug is shown in the section
> of the Zend Modules.
>
> Any suggestion or anything I can try or do?
>
> Thank in advance
> Johan Vandeweerd
>
Re: PDT - (x)debug local PHP script [message #61927 is a reply to message #61904] Sun, 02 December 2007 12:13 Go to previous message
Johan Vandeweerd is currently offline Johan VandeweerdFriend
Messages: 3
Registered: July 2009
Junior Member
Thanks Dave, symlinking the php.ini to the same directory did the trick.

Regards
Johan Vandeweerd
Previous Topic:web page debug: source code view from wrong dir
Next Topic:Re: Disabling "Building workspace"
Goto Forum:
  


Current Time: Fri Apr 19 20:17:44 GMT 2024

Powered by FUDForum. Page generated in 0.03676 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top