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 - Xdebug path mapping (cli project, virtual machine, phpunit)
Summary: Xdebug path mapping (cli project, virtual machine, phpunit)
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-01 03:13 UTC by nbuser5000
Modified: 2016-08-29 06:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).