Remote debugging with XDebug and PHPStorm

后端 未结 4 1247
[愿得一人]
[愿得一人] 2021-02-01 05:37

First things first:

  • Server is an Apache running on Debian in a VMPlayer
  • Host is Windows 7
  • Debugging-Server is XDebug
  • Files are directly
4条回答
  •  孤城傲影
    2021-02-01 06:27

    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.

提交回复
热议问题