[xdebug-general] Re: Issue or feature: Call stack displays wrong path to PHP script

From: Derick Rethans <derick[@]xdebug.org>
Date: Sun, 16 Oct 2011 07:02:05 -0700 (PDT)

On Sun, 16 Oct 2011, Maik Greubel wrote:

> Hello list,
>
> before opening an issue on mantis, I decided to ask whether this is a
> well-known issue (and I have found nothing about it) or do I need to create a
> ticket?
>
> On my testing platform (Windows 7 with PHP 5.3.8 and XDebug 2.1.2) I saw this
> when doing a common test with undefined variables in source and got the
> following result in browser:
>
> =================== >8 =====================
> ( ! ) Notice: Undefined index: test in D:\web\htdocs\tests\foo.php on line 2
> Call Stack
> # Time Memory Function Location
> 1 0.0010 328656 {main}( ) ..\foo.php:0
> =================== 8< =====================
>
> I requested the URL http://localhost/tests/foo.php and don't understand why
> xdebug tells me, that the script is found in ..\foo.php (Location column),
> which would be physically one folder up from 'tests'. I guess this is wrong.

Nope, just hover over it to get the full path. This is done to not make
the table "explode" in your browser. Do you think it makes sense to use
three dots instead, or another symbol? As it does look confusing indeed.

cheers,
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 Sun Oct 16 2011 - 15:02:07 BST

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