Configure command line parameters when debugging a remote php script
I need to debug a php script that is run in a remote engine. I have configured the remote cli and it works fine (I can remote run the script)
Now, I want to debug it. But when I try to debug it I can see PHPSTORM is configuring some parameters by itself:
sftp://myaccount@my.remote.server:22/usr/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=1.1.1.1 /my/remote/script.php
My only problem is that PHPSTORM is setting the xdebug.remote_host by itself and I need to configure it
How can I do that?
请先登录再写评论。
Hello,
Did you create a Run configuration for this remote debugging?
You can specify `-dxdebug.remote_host=x.x.x.x` value in interpreter custom options.
See more in https://youtrack.jetbrains.com/issue/WI-33390.
Thanks for your quick answer. I have tried this and it works fine. The only weird thing is that the remote debug command line has now 2 -dxdebug.remote_host parameters (the first one is automatic and it is wrong and the second one is configured by me and it is correct). As the second host is the final one it is working fine.
Thanks!!!!