Docker, PhpStorm & Xdebug: Can't find source position error

后端 未结 1 1714
面向向阳花
面向向阳花 2021-02-12 15:53

I built an image that is based on a php:5.6-fpm-alpine image and I run a symfony-based application therefore I run both cli and web-based php scripts.

So I

相关标签:
1条回答
  • 2021-02-12 16:42

    That happend because on Servers section of the phpstorm does not have the very same name as defined in the PHP_IDE_CONFIG enviromental variable in order to solve that follow these steps:

    Step 1: Go to server settings by pressing Ctrl+Alt+S or by visiting File -> Settings from the menu.

    Step 2: Then on the open window go to Settings -> Languages & Framework -> Servers.

    Step 3: Set the Name as the one defined into:

    export PHP_IDE_CONFIG="serverName=0.0.0.0:5092"
    

    In order to work it should be 0.0.0.0:5092 as the image shows:

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