

If the plugins are disabled, enable them on the Plugins page as described in Manage plugins.Ĭreate an SSH configuration as described in Create SSH configurations.

Make sure the PHP Remote Interpreter and FTP/SFTP Connectivity plugins are enabled. You can access a remote PHP interpreter through SSH, Docker, Docker Compose, Vagrant, or WSL:īy using SSH, you can access a PHP interpreter through the SSH access to the host where the PHP interpreter is installed.Ĭonfigure access to an ssh server on the target remote host and make sure this server is running. The term remote PHP interpreter is used as the opposite of local PHP interpreters that are installed on your computer, see Configuring Local PHP Interpreters. The term remote PHP interpreter denotes a PHP engine installed on a remote host or in a virtual environment. After refreshing the website, the PHPStorm should pause executing the program and show us everything in details. I suppose it could be really annoying to find, open and generate this link every time we need to profile the code, so I have created a bookmark from these links in my browser’s toolbar – good practise.
#Phpstorm php interpreter code#
These links include javascript code which creates or destroys cookie on selected domain. The most important for us are Start Debugger and Stop Debugger. Īs you can see we have a few possibilities.

You can do it from browser’s profiler or use a ready tool available on PHPStorm page –. We need to generate a cookie on our domain. Enabling debugger in IDE is not enough, unfortunately. The PHPStorm needs to know whether you want to debug or not.

Then we can select the related server and fill in the session ID field.Īpply all changes and enable the debugger: Creating Xdebug cookie
#Phpstorm php interpreter full#
PhpStorm provides a full integration with Vagrant allowing you to configure the Vagrant virtual environment, control the behavior of virtual machines, and execute Vagrant commands from within your project. Then, you need to specify the xdebug.remotehost (IP address of your local from your Vagrant) when launching the command from the virtual machine’s terminal. To use Xdebug for debugging commands or unit tests, first, you need to add xdebug.remoteautostart=true in XDebug configuration file of your Vagrant xdebug.ini. Moreover, you can apply this when you’re working on remote server too. I’d like to present a quick solution for this problem. When I have installed the Vagrant for the first time I struggled with connecting xdebug and PhpStorm for a while.
