![]() ![]() Run the command-line tool on the remote server.Create a breakpoint somewhere early in the execution path.Tunnel the Xdebug TCP connection if necessary. ![]() Use environment variables on the remote machine to tell xdebug what to do with the debugging session.Create a mapping from server side directories to PHPStorm-side code (A "Server" configuration in PHPStorm).This can be done via source control with matching code, by mounting the remote directory to your local machine, or any way you want. We'll create a PHPStorm project that contains all the code we want to debug on the remote machine.Just enter PHPStorm's Run/Debug configuration and create a new "PHP Script" configuration. Note: If you just want to debug a PHP script (or drush command) on the local machine, that's much easier. You just have to set up a couple of environment variables, map the remote code to the local code that PHPStorm has at its disposal, and tunnel the xdebug connection to your workstation. XDebug with PHPStorm can do step-debugging on remote sessions started from the command line on a remote machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |