So how can I get Firefox up and running? I also use Firefox with Eclipse. 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. I already got so far that PHPStorm started Chrome. XDebug with PHPStorm can do step-debugging on remote sessions started from the command line on a remote machine. 1.index.phpĪnd I get asked for: Mozilla's profile.ini. Run / Edit configurations / Defaults / PHP Web Application: Note: From the menu bar, PhpStorm > Preferences > PHP > Debug will apply settings to the current project as described in the video. Configure real remote debugging (xdebug) in phpstorm, Programmer All, we have been working hard to make a technical sharing website that all programmers.
#Phpstorm remote debugging how to#
Well walk through getting XDebug set up, and then how to debug, including setting breakpoints. Run / Edit configurations / Defaults / PHP Remote Debugging:Ĭ:\dev\sf\Symfony => /mnt/hgfs/sf/Symfony (also tried /Symfony - b/c PHPStorm shouldn't care about anything above /Symfony !?) In this lesson youll learn how to configure PhpStorm to use XDebug. So I will just set up a new project and hopefully someone tells me what is wrong with my configuration.
![phpstorm remote debugging phpstorm remote debugging](https://randyfay.com/sites/default/files/PHPStorm_server_config.jpg)
I get weired error messages like "Waiting for connection from JetBrains PhpStorm." or PHPStorm asks me for Mozillas profile.ini, even though I configured Chrome as Default in Web Browsers.
![phpstorm remote debugging phpstorm remote debugging](https://confluence.jetbrains.com/download/attachments/54345259/zend_server_tutorial_18.png)
location on Debian: \mnt\hgfs\sf\Symfony\.location on my Win7 host: C:\dev\sf\Symfony\.The file that I want to debug is index.php: So what I am failing at seems to be the basic configuration of PHPStorm. Getting (remote) debugging setup for web-based applications can be a finicky and intricate affair at times, depending on the structure of your development environment. I know that b/c I can debug using Eclipse. This article doesn’t cover debugging web-based applications with PhpStorm, but smaller code libraries. Important: XDebug is properly configured on Apache and my Win7 firewall as well.
#Phpstorm remote debugging install#
Files are directly accessible via a shared folder Steps (remote server): Install Xdebug in your server: scl enable rh-php70 bash pecl install Xdebug Xdebug will need a port (usually its port 9000).Go to Preferences -> PHP -> Debug and change the Debug port under the Xdebug section to 9003. Also, the default port of Xdebug changed from 9000 to 9003, so we need to change it. Server is an Apache running on Debian in a VMPlayer I updated it to the latest version (2020.2.4).