This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251543

Summary: Xdebug path mapping (cli project, virtual machine, phpunit)
Product: php Reporter: nbuser5000
Component: DebuggerAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description nbuser5000 2015-04-01 03:13:06 UTC
I'm running Netbeans in the following configuration:
   netbeans 8.0.2 running on windows 7
   project lives on a virtual machine
   virtual machine's drive mapped in windows as Z:

e.g Z: --> / (root)

I'm running a cli project (script) by executing the php interpreter on the virtual machine via ssh and a batch file wrapper on Windows. 

I have a standard layout with code in src, and tests in tests, which is mapped as the test directory in project config (so the directory shows up as "Test Files" in Netbeans). 

When I debug a file in the source directory, Neatbeans manages to automatically map paths (e.g. z:/var/apps/file.php is mapped to /var/apps/file.php) when Netbeans is communicating with xdebug (as seen in the xdebug log).

However, when I debug a PHPUnit Test in the tests directory, path mapping doesn't work and xdebug breaks (e.g. it sends back /var/apps/file.php, which NetBeans doesn't understand). 

How does Netbeans figure out how to map paths in the first case (when running in the src directory)? Can the same be done for the Tests directory? Can an explicit option be added for path mapping for scripts (I am aware of the one for web apps in Advanced options, but that doesn't exist for scripts).