PhpStorm, Xdebug configuration: Cannot find a local copy of the file on server

已回答

I try to debug my code, but i've trouble with the mapping Local/Server. I ask already here, but without success   

Using xdebug_break() (as temporary improvement) response with: 


Cannot find a local copy of the file on server /var/www/html/nudelplanet/src/Administration/Controller/AdministrationController.php
Local path is //var/www/html/nudelplanet/src/Administration/Controller/AdministrationController.php
...

Questions:
- Where come from the local path //var/www/html/... . Never i setup this.
- My PHPStorm-setup is documented here

0

In terms of PhpStorm, Lando is a remote server. Files are located "remotely", they're not accessible by local file system, hence the "remote" naming.
Please enable "use path mappings" checkbox and adjust the mapping for that file.

0

Konstantin Annikov thx for reply. As you can see, your recommend setup is already done... Maybe i have an error in my config?

0

I was also getting the same error. I later realized that the mapping was wrong. It was solved by changing mapping and adding /app to the folder where lando.yml is located on mapping settings.

0

请先登录再写评论。