News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Chuck Burgess' Blog:
Remote CLI Debugging via Eclipse PDT
December 03, 2008 @ 12:53:38

Chuck Burgess has posted a discovery he made while working with Eclipse PDT and a command line script that he needed to debug:

This week, I found a need to do this same kind of remote debugging, but for a command-line PHP script. This seems to be something that Eclipse is not already designed to do, as there is no "perpetual listener" available for its debug client. Instructions for remote CLI debugging are available, which showed me that environment variables might be the missing link to getting it working with Eclipse. It turned out to be one of two missing links. The other link was tricking Eclipse into keeping a debug session open (and therefore "listening").

He found that by loading up the PHP file in a shell script with the XDEBUG_CONFIG and XDEBUG_SESSION variables defined, it allows the Eclipse listener to connect and work through the file like a normal web page request.

1 comment voice your opinion now!
eclipse pdt remote commandline cli debug xdebug


blog comments powered by Disqus

Similar Posts

Alexander Netkachev's Blog: "PHP IDE" is superseded by "PDT, PHP Development Tools"

Stuart Herbert's Blog: Introducing phix

Mike Bernat's Blog: Installing Xdebug - Best Decision You Will Ever Make

Brandon Savage's Blog: Bug-Free: Your Bug-Fixing Toolkit (Part 1 of N)

Jaanus\' Blog: How to retrieve remote files in your web apps and still be friends with the server


Community Events





Don't see your event here?
Let us know!


version package release mvc library framework interview introduction language symfony podcast series community opinion update composer security voicesoftheelephpant laravel tool

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework