[xdebug-general] Re: Having trouble getting started with xDebug

From: Ken Freed <kfreed[@]verizon.net>
Date: Sat, 10 Apr 2010 11:30:39 -0500

WOW - Derick. MANY thanks.

I have spent hours and hours and hours trying to get a php debugger -
anyone's php debugger, to actually work.

In my case, the most recent attempt was with vs.php, which uses xDebug.
While I still don't know how to invoke xDebug without the vs.php product, I
was able (through more trial and error) to actually get the vs.php product
to work (they don't tell you you have to stop your Apache server and let
theirs take over, and they don't tell you you cant just load a file and
attach to a process - you have to create a php project from scratch. They
don't tell you that the "No symbols have been loaded" error is due to this,
hence the web trackdown of the error message is entirely misleading).

In my case, to get xDebug to work with vs.php I needed the multithreaded dll
(for use with php5). I also had to figure out (via the phpinfo.php
suggestion you made) that one's version of the xdebug...dll has to match
your version of php (mine is 5.2). They are not independent. Finally - I
don't know what debug listener is used for. I did not need it at all.

Thanks again! - Ken

----- Original Message -----
From: "Derick Rethans" <derick[@]xdebug.org>
To: "Ken Freed" <kfreed[@]verizon.net>
Cc: <xdebug-general[@]lists.xdebug.org>
Sent: Saturday, April 10, 2010 7:26 AM
Subject: Re: [xdebug-general] Having trouble getting started with xDebug

> On Fri, 9 Apr 2010, Ken Freed wrote:
>> Per the title, I'm running an Apache web server on localhost with php5
>> under
>> Windows Vista. I'm trying to do a very simple "set a breakpoint and look
>> at
>> variables" debug task.
>> I find the documentation mixes old and new versions of xDebug, and Unix
>> setup
>> information. They refer to a session name (a Unix PID?) that I don't
>> know how
>> to get (or can I just make one up?).
> The session "IDE key" you can just mak up. The documentation for Xdebug
> 2 and 2.1 is mostly the same, especially for debugging. 2.1 just has a
> few more options andfeatures.
>> The web has different setup infromation for php.ini from different
>> sources,
>> and I'm not sure whether to use the threaded or non-threaded dlls (my web
>> app
>> is simple and only has one thread).
> Your web application has nothing to do with it. It depends on which PHP
> version you use. With Apache, you need a thread-supported PHP version,
> which means you also need that for Xdebug. Before you attempt anything
> with debugging, see if Xdebug has been properly loaded by looking at
> phpinfo() output. It should show up next to the Zend logo in the first
> section, and also further down between all the extensions.
>> The Xdebug section of my php.ini file looks like (I installed my php to
>> c:\php):
>> ; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
>> zend.ze1_compatibility_mode = Off
>> ;report_zend_debug = 0
>> [XDebug]
>> ;; Only Zend OR (!) XDebug
>> zend_extension_ts="C:/php/ext/php_xdebug-2.1dev-5.2-vc6.dll"
> Remove the quotes.
>> xdebug.remote_enable=true
> I would suggest you set this to 1, I don't think true works. The ones
> below you don't need:
>> xdebug.remote_host=localhost
> ...
> 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 Sat Apr 10 2010 - 18:30:52 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST