Remote debugging with XDebug and PHPStorm

喜欢而已 提交于 2019-12-02 18:12:41

Okay, there are three things I'd like to share with you. It's not the full recipe but the key ingredients that were first confusing me are:

  1. The important sections to configure are "Servers" and "PHP Remote Debugging".

  2. To configure "PHP Remote Debugging" you have to first add a new dataset using the [+] in the top left corner. The panel you get from just clicking on the "PHP R D"-button just keeps the default settings!

  3. Absolute path regarding the VM actually means the absolute path starting from root (\mnt\hgfs\sf\Symfony). This was confusing to me cause I am still not sure why PhpStorm cares about directory levels above the shared folder. but it does.

Blair McMillan

If you are still having problems, there are two blog posts by the makers on how to set things up correctly.

First should work in most cases and requires zero-configuration other than a working xdebug install

Second details all of the configuration settings in detail

b0r7

To 'see' the profile.ini in the PHP Storm 'Select File' Dialog simply rightclick inside of it and choose 'Show hidden files' then (in WIn7) move to C:\Users\YOURUSERNAME\AppData\Roaming\Mozilla\Firefox or the equivalent in your OS

  1. Ensure that remote debugging is enabled in php.ini

    xdebug.remote_enable = 1

  2. Your server "192.168.56.128" should be in PHP-> Servers

  3. Add PHP Web Application Debug Configuration, and use added server
  4. Set a breakpoint and start debugging using this configuration
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!