D
D
Daedmen2012-08-29 20:50:04
PHP
Daedmen, 2012-08-29 20:50:04

Why doesn't Phpstorm map file paths when debugging?

I'm trying to set up remote debugging of console scripts with Xdebug in PhpStorm, I sit on servers via OpenVPN and use DBGp Proxy, which is on another server in the local network. It seems that everything is set up, php normally reaches PhpStorm.
But at the same time, on all breakpoints during debugging, a warning appears that the server does not have the file in which they are set, for example: “Line 10 /Users/user_name/path_to_php_file/file.php
Remote file /Users/user_name/path_to_php_file/file.php doesnt exists” . It seems that the file mapping settings from the Run / Debugging Configuration do not work, where I checked the Use path mapping checkbox in the server settings and assigned the path on the server /home/remote_user/ to the local folder /Users/user_name/path_to_php_file/.
I also had an assumption that in the server settings in the Host field, where I have the internal ip of the server on which the script is running, there may be confusion due to DBGp Proxy and / or OpenVPN, so I dumped the traffic between the proxy and phpstormom. If I understand correctly, then just the hostname attribute from the beginning of the dump

<?xml version="1.0" encoding="UTF-8"?>
<init appid="2946" fileuri="file:///remote_user/file.php" hostname="Host_IP" idekey="daedmen" language="PHP" protocol_version="1.0" proxied="true" xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug"><engine version="2.2.0">
should match the one in the phpstorma settings, but they match, so that's not the problem.
Maybe someone has already come across or have ideas where else to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EugeneOZ, 2012-08-29
@EugeneOZ

Alternatively, you can still try to make a connection without DBGp: habrahabr.ru/post/146547/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question