How tell PHPStorm debugger, that my project has document root other than project root

て烟熏妆下的殇ゞ 提交于 2019-12-07 03:57:17

问题


I'am trying to set up PHPStorm with xdebug. Everyting launches fine, but breakpoints just do not work and have "x" symbol on them.

I'm using openserver with PHP 5.4 and editing files directly on the local web server, so no file mapping is necessary.

I think, that my problem is that web server root is located below the project root directory (for security reasons) and PHPStorm does not that.

Project root: C:\OpenServer\domains\mysite

Web server root (configured in nginx): C:\OpenServer\domains\mysite\httpdocs

How do I tell PHPStorm, that the index.php that webserver runs is actually C:\OpenServer\domains\mysite\httpdocs\index.php, but not C:\OpenServer\domains\mysite\index.php?


回答1:


You have to use path mapping. You can find it in debug server configuration

Check out official docs and vids:

  • Help page
  • PHP Debugging webinar recording
  • JIT debugging
  • Smart step into
  • Simultaneous debug sessions


来源:https://stackoverflow.com/questions/13289205/how-tell-phpstorm-debugger-that-my-project-has-document-root-other-than-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!