I am trying to configure PhpStorm 2016.2 with Xdebug and Vagrant (Drupal VM). I have read many tutorials advising how to configure these three applications. I think it's almost there, but I'm not sure what this error is?
When I click to setup path mappings, it appears that 'File path in project' is the issue. On Vagrant I have:
- /var/www/drupalvm/sitelog/index.php
On my local I have:
- /Users/24ma13wg/PhpstormProjects/sitelog/index.php
...but I don't have index.php in my project files:
How can I resolve this? Thanks.




/Users/24ma13wg/PhpstormProjects/sitelog/index.php" -- you do not have that -- compare your paths again -- your screenshot shows that you have created project in subfolder (/sitelog/modules/sitelog) .. whileindex.phpshould be in/sitelog/index.php-- right now it's outside of the project. - LazyOneindex.phpas it's your site's entry point .. and it is not found in the project .. so from IDE side it's an indication of possible misconfiguration (it's a debug session, the file gets executed .. but you do not have it). - LazyOneSettings/Preferences | Languages & Frameworks | PHP | Debug, In particular --Force break at first line when a script is outside of the project-- it is what must be happening here. If you disable it .. the debugger should ignore this moment (that the script that is being executed is outside of the project) and should keep running as usual until breakpoint gets hit (when execution gets through Drupal's internals and reaches the point where it hits your actual files). In theory it should work (again: not a Drupal user myself so cannot state this for sure). - LazyOne/var/www/drupalvm/sitelog/modules/sitelog) 2) disable that aforementioned option 3) review that 2nd link I gave you 4) try debugging again - LazyOne