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

From: Derick Rethans <derick[@]xdebug.org>
Date: Sat, 10 Apr 2010 14:26:42 +0200 (CEST)

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



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 - 13:26:41 BST

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