i have a problem regarding netbeans in combination with xdebug on a remote machine.
Installation
My php.ini looks like this one(accepted answer) Remote PHP Debugging with Netbeans and XDebug
And everything works pretty normal. Simple projects I can debug on on the remote-server 9000. I also can use the debug-button on netbeans.
The problem
As long as the the entry file is inside the project everything works fine. The problem starts when the file is outside the project scope. Imagine a project called Calculator. But the files get never called directly, they get included by an index-file outside the current project.
So the project(in netbeans) looks like this
- Calculator
- file1.php
- file2.php
The real file structure looks like this as an example
- index.php
- Calculator
- file1.php
- file2.php
- Calculator
Solution?
The index.php gets called via debugger. The debug waits somewhere in that index.php (I can see this at the "call stack") if I checked "stop on start" in the project properties. Even if the index-file includes file1.php I cannot get to a breakpoint. It runs through till the end. breakpoints are ignored.
A solution was to put the project at the root-level(including the index.php) but this is in that case not acceptable. Has anyone an idea what I could do to get this working?
Thanks in advance!