[xdebug-general] Re: Query - Start up problem

From: Derick Rethans <derick[@]xdebug.org>
Date: Fri, 23 Feb 2007 10:42:48 +0100 (CET)

On Fri, 23 Feb 2007, Chris Miller wrote:
 
> I am running a release version of php 5.2.0 in a Windows environment. From
> your web site I downloaded a precompiled version Xdebug -
>
> 1. - php_xdebug-2.0.0rc3-5.2.1.dll from your web site &
> 2. - php_xdebug.dll from the PECL
>
> and put both in my 'php\ext' directory. Following the installation page in
> the web site I altered the php.ini file to be either -
>
> ;=================================================
> ; Xdebug settings
> zend_extension_ts = "c:/php/ext/php_xdebug-2.0.0rc3-5.2.1.dll"
> ;=================================================
> or
> ;=================================================
> ; Xdebug settings
> zend_extension_ts = "c:/php/ext/php_xdebug.dll"
> ;=================================================
>
> the extra decoration was added so that I could spot it easily.

Check either with "php -v" (commandline) or a script with "<?php
phpinfo(); ?>" in it to see whether it is loaded correctly.

> In the <scriptname.php> the second line reads 'xdebug_start_profiling() ;'
> the first is '<?php', but I receive an error -
>
> C:\Program Files\Apache Group\Apache2\htdocs\MyService\test>php -e -f
> nonamespacetest.php
> PHP Fatal error: Call to undefined function xdebug_start_profiling() in
> C:\Program Files\Apache
> Group\Apache2\htdocs\MyService\test\nonamespacetest.php on line 2
>
> Given that the installation instructions are simple, I clearly have been
> able to make a mess of this can you put me the straight, and point out the
> obvious.

That function is only available in Xdebug 1:
http://xdebug.org/docs-functions.php#xdebug_start_profiling

Have a look at the following URL on how to do profiling with Xdebug 2:
http://xdebug.org/docs-profiling2.php

regards,
Derick

-- 
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Fri Feb 23 2007 - 10:43:12 GMT

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