Community
Participate
Working Groups
Build Identifier: 20100617-1415 On Ubuntu Linux 10.04 (Lucid) with PHP 5.3 and ZendDebugger Eclipse PHP Debug stops at random positions a lot of Times before actually reaching the defined Breakpoint. I experienced this in a Zend Framework Project. This also happens in a completely fresh Installation of Eclipse with a new Workspace. Reproducible: Always Steps to Reproduce: 1. Create a new PHP Project and setup a simple ZendFramework CLI application. 2. Reference the Zend Framework code to the project (Project Properties > PHP Include Path > Projects) 3. Setup a "PHP Script" debug configuration for your app 4. Set a breakpoint somewhere in your code. 5. Launch the debug config. The debugger stops at random points a lot of times. In my case it always stops at the first line in Zend_Loader.loadFile() which is self::_securityCheck($filename); - And there is NO breakpoint for this line. But also on Zend_Cache_Backend_ExtendedInterface right where the interface keyword is. With this behavior, debugging a PHP Script is almost impossible.
I just found out that this happens when the include_path of php.ini to the Zend Framework is some other location in the filesystem than the workspace of Eclipse. i.e. * Zend Framework is located in /usr/share/php * ~/workspace/zend-framework contains a symlink Zend pointing to /usr/share/php/Zend * php.ini include path is set to /usr/share/php * PHP Debug stops randomly at files which paths could not be mapped Changing the include path in php.ini to the workspace location and copy the Zend folder instead of symlinking it resolves the issue. But this is only a workaround IMHO and the Problem should be fixed. It also happens in Website debugging when a file location could not be mapped.
this was fixed lately. You can grab the latest nightly build or ait until SR-1 is out.
No longer reproducible. Closing...