qosatoday.blogg.se

Download configure xdebug phpstorm
Download configure xdebug phpstorm






download configure xdebug phpstorm

– Name: localhost (Same as PHP_IDE_CONFIG in docker-compose.yml)

  • Click Server then Add a new server configuration.
  • download configure xdebug phpstorm

  • Mac OS X: Select PhpStorm > Preferences.
  • Refresh the browser and the debugger should invoke and stop at the break point.This tutorial shows you how to debug your code using PhpStorm and Google Chrome browser with Xdebug. To make sure the debugger is working properly, let's set a break point in index.php. The browser should now open up and the debugger should open up in Phpstorm. Your configuration should look something like this, where is where your drupal instance is Once you have it set up, we will set up the debugger here.Īdd a new server, your Host will be different depending on your setup In this example, I'm using PhpStorm but you can use any compatible IDE.

    download configure xdebug phpstorm download configure xdebug phpstorm

    įinally, we have to tell the IDE how to communicate with Xdebug. Restart Apache, then make sure Xdebug is loading by looking at phpinfo. Then find and uncomment the following lines in /etc/php.ini zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so" If /etc/php.ini doesn't exist, create a copy of the default file with the following command: sudo cp /etc/ /etc/php.ini To do that, open up /etc/php.ini with your text editor. Once you have Xdebug installed, we need to make it available to PHP by editing the php.ini file. If you're using the earlier OSX Lion version, you can download and install Xdebug with PECL (PHP Extension Community Library) or Homebrew. OSX Mountain Lion conveniently ships with Xdebug. The recently release Mountain Lion version makes it easy by shipping with many of the tools we need for PHP debugging. In previous versions of Mac OS X, installing Xdebug could be a hassle. A debugger gives you the ability to trace your code line-by-line, with the call stack and all the variables available for inspection at run-time. Using a PHP Debugger is a great way to effectively debug your code.








    Download configure xdebug phpstorm