When using Zend Debugger, make sure the PhpStorm bookmarklets or Browser Debugging Extension is configured to connect to 127.0.0.1.Xdebug or Zend Debugger installed and configured for a sample configuration. Make sure Xdebug is configured to connect to 127.0.0.1 and port 9000.When the debugger never connects or refuses the connection, check the following: Troubleshooting The debugger never connects or refuses the connection This workflow is not officially recommended way of debugging, though it might be useful in some cases when the debugging session is needed to be established from the remote server side. Since the debugger runs on a remote machine, starting a CLI debugging session can be done by using PHP command line switches or using environment variables (on the remote machine). Check Debugging PHP CLI scripts with PhpStorm for more information about how to debug PHP CLI scripts. When the SSH tunnel is up and running, we can also debug PHP CLI scripts. Read more in working with Remote PHP Interpreters in PhpStorm tutorial. Vagrantfile), it's possible to configure run/debug configuration taking advantage of the remote PHP interpreter for debugging. When the remote PHP interpreters are properly configured (with proper deployment mappings set in Settings / Preferences | Build, Execution, Deployment | Deployment or defined in. (optional) Debugging PHP CLI scripts with remote PHP interpreters or via SSH tunnel Once accepted, we will be able to debug using the techniques outlined in Using the PhpStorm Debugger. When the debugger is started, PhpStorm will prompt us if we want to accept the incoming connection. Once the SSH tunnel is up and running, we can start debugging using zero-configuration debugging with Xdebug or with Zend Debugger. When a machine is rebooted or the connection is lost, the SSH tunnel has to be reestablished. Make sure that you are running a command to create an SSH tunnel from the developer's machine to the server (not vice versa). Make sure to select the "Remote" radio button and then click Add.Ĭlick Open to connect to the remote server and setup the SSH tunnel. For destination, enter "localhost:9000" (Xdebug) or "localhost:10137" (Zend Debugger).The source port will be 9000 (Xdebug) or 10137 (Zend Debugger).Next, expand the Connection | SSH | Tunnels node on the left and add a new forwarded port. Once installed, we can configure the connection to the remote machine by providing the hostname and port. To setup an SSH tunnel on Windows, we'll need Putty on our machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |