Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » running xdebug to webserver in a same machine
icon5.gif  running xdebug to webserver in a same machine [message #510212] Tue, 26 January 2010 17:41 Go to next message
Ethereal1m Mising name is currently offline Ethereal1m Mising nameFriend
Messages: 37
Registered: January 2010
Member
Dear experts,
Is it possible to run xdebug and step through a script that runs on a webserver on a same machine where eclipse resides?
I do this by setting:
xdebug.remote_host=127.0.0.1

However, I always get the debug process abruptly ended without getting step through. And also my debug window on Eclipse doesn't show "remote launch" as the documentation suggests.

Furthermore, Eclipse is submitting the following url in order to launch the debug session:
http://localhost/train/temp.html?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=12645272826563


And funny thing, log file is not written even though I set it up. The following is the php.ini config:
xdebug.remote_enable=1
xdebug.auto_trace=0
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
zend_extension_ts = "C:\PHP\php_xdebug-2.0.5-5.2.dll"
xdebug.remote_log = "C:\PHP\log\remote.log"


On the other hand, I can debug php script fine using xdebug. Is there anything that I miss?

Regards,
ethereal1m

Re: running xdebug to webserver in a same machine [message #510227 is a reply to message #510212] Tue, 26 January 2010 18:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dkel50.hotremovemail.com

If you are not getting anything in the log, then that implies xdebug is
not loaded or being invoked. With the URL you have posted if xdebug was
present then you should get at least the init entry in there as it tries
to contact the IDE.

So I think there is some issue with the setup of your webserver. I can't
spot any other problem with your setup. You may also want to check the
faq at www.xdebug.org as xdebug cannot work with some other extensions
such as the zend optimizer.

Dave Kelsey



On 26/01/10 17:41, Ethereal1m wrote:
> Dear experts,
> Is it possible to run xdebug and step through a script that runs on a
> webserver on a same machine where eclipse resides?
> I do this by setting:
>
> xdebug.remote_host=127.0.0.1
>
> However, I always get the debug process abruptly ended without getting
> step through. And also my debug window on Eclipse doesn't show "remote
> launch" as the documentation suggests.
> Furthermore, Eclipse is submitting the following url in order to launch
> the debug session:
>
> http://localhost/train/temp.html?XDEBUG_SESSION_START=ECLIPS E_DBGP&KEY=12645272826563
>
>
>
> And funny thing, log file is not written even though I set it up. The
> following is the php.ini config:
>
> xdebug.remote_enable=1
> xdebug.auto_trace=0
> xdebug.remote_host=127.0.0.1
> xdebug.remote_port=9000
> xdebug.remote_handler="dbgp"
> zend_extension_ts = "C:\PHP\php_xdebug-2.0.5-5.2.dll"
> xdebug.remote_log = "C:\PHP\log\remote.log"
>
>
> On the other hand, I can debug php script fine using xdebug. Is there
> anything that I miss?
>
> Regards,
> ethereal1m
>
>
Re: running xdebug to webserver in a same machine [message #510279 is a reply to message #510212] Wed, 27 January 2010 05:12 Go to previous message
Ethereal1m Mising name is currently offline Ethereal1m Mising nameFriend
Messages: 37
Registered: January 2010
Member
Hi Dave,
thanks for the reply. I'm suspecting that flip floping php version from 5.3 to 5.2 back and forth makes flimsy behavior. Hence I uninstall everything and start from scratch and see what will happen.
Previous Topic:Code assist, etc. for namespaced classes
Next Topic:Log Writes
Goto Forum:
  


Current Time: Thu Apr 25 15:22:42 GMT 2024

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

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

Back to the top