Remote debugging with XDebug and PHPStorm

后端 未结 4 1246
[愿得一人]
[愿得一人] 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:11

    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

    0 讨论(0)
  • 2021-02-01 06:25

    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

    0 讨论(0)
  • 2021-02-01 06:25
    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
    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题