I am using PHP 5.3 with namespaces, like so:-
namespace snb\cms\controller;
class TestNamespace
{
public function showAction()
{
echo "<h1>in show action</h1>";
}
}
I also use an autoloader that maps classes to files, based on their
namespace. The above example maps to:-
/cms/controller/testnamespace.php
The autoloader ends like this:-
if (file_exists($path))
{
require $path;
return true;
}
As soon as the 'require' statement is reached, the debugger appears to
disconnect. I can step over the code up to this line, but as soon as
the include happens the debugger is gone.
Since I have xDebug working fine for ages, and I have just started to
use namespaces, I suspect the two things are linked.
Has anyone else encountered problems using xDebug with namespaces
and/or autoloading classes.
Thanks
Rik Heywood
Received on Tue Oct 25 2011 - 19:51:19 BST
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST