I'am trying to set up PHPStorm with xdebug. Everyting launches fine, but breakpoints just do not work and have "x" symbol on them.
我正在尝试用xdebug设置PHPStorm。每一个断点都启动得很好,但是断点不能工作,并且上面有“x”符号。
I'm using openserver with PHP 5.4 and editing files directly on the local web server, so no file mapping is necessary.
我正在使用带有PHP 5.4的openserver,并直接在本地web服务器上编辑文件,因此不需要进行文件映射。
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.
我认为,我的问题是web服务器根目录位于项目根目录之下(出于安全原因),而PHPStorm不是这样的。
Project root: C:\OpenServer\domains\mysite
项目根:C:\ \ mysite OpenServer \域
Web server root (configured in nginx): C:\OpenServer\domains\mysite\httpdocs
Web服务器根(在nginx中配置):C:\OpenServer\domain \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?
如何告诉PHPStorm呢?webserver运行的php实际上是C:\OpenServer\domain \mysite\httpdocs\index。php,但不是C:\ OpenServer \域\ mysite \ index . php ?
1 个解决方案
#1
7
You have to use path mapping. You can find it in debug server configuration
你必须使用路径映射。您可以在调试服务器配置中找到它
Check out official docs and vids:
查看官方文档和vids:
- Help page
- 帮助页面
- PHP Debugging webinar recording
- PHP调试会议记录
- JIT debugging
- JIT调试
- Smart step into
- 聪明的进入
- Simultaneous debug sessions
- 同时调试会话
#1
7
You have to use path mapping. You can find it in debug server configuration
你必须使用路径映射。您可以在调试服务器配置中找到它
Check out official docs and vids:
查看官方文档和vids:
- Help page
- 帮助页面
- PHP Debugging webinar recording
- PHP调试会议记录
- JIT debugging
- JIT调试
- Smart step into
- 聪明的进入
- Simultaneous debug sessions
- 同时调试会话