[xdebug-general] Re: Debuging with namespaces

From: Derick Rethans <derick[@]xdebug.org>
Date: Sun, 27 Jan 2013 11:54:49 +0100 (CET)

On Sat, 26 Jan 2013, General Mail wrote:

> PHP Version: PHP 5.3.15
> Xdebug Version: Xdebug v2.2.1
>
> I having problems debugging PHP code that contain namespaces, the paths
> returned by Xdebug are invalid, IE:
>
> /mnt/Workspace/ZippeeFramework2/Library/Classes/Database/Sql/Insert.php.ZF2\Database\Sql\Insert->getSqlStatement()
>
> It should simply be
> /mnt/Workspace/ZippeeFramework2/Library/Classes/Database/Sql/Insert.php.
>
> Is there anything I can do to remedy this?
>
> Here is partial code:
>
> $update = new \ZF2\Database\Sql\Insert( 'Employees' );
> $emp[ 'John' ] = 'Mike D.';
> $emp[ 'Fat' ] = 'Skinny';
> $update->values( $emp );
> var_dump( $update->getSqlStatement() );
>
> Any assistance on this matter would be really appreciate it.

If you can provide a self-contained example (not something that uses ZF
or anything!) then I can have a look at it. You didn't say *where* you
saw that strange path though.

cheers,
Derick
Received on Sun Jan 27 2013 - 10:54:54 GMT

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