propopla.blogg.se

Phpstorm 10 xdebug
Phpstorm 10 xdebug




  1. #Phpstorm 10 xdebug how to#
  2. #Phpstorm 10 xdebug install#
  3. #Phpstorm 10 xdebug code#

First, check where the xdebug.so (“Shared Object”) file is located. Once Xdebug is installed, you need to tell PHP to use it, which requires some additions to your php.ini.

#Phpstorm 10 xdebug install#

It’s recommended to use the latest version available version of Xdebug, but I suggest first getting used to it by using the version available in the Ubuntu repositories, before attempting a manual install to make sure you’re always on the latest and greatest. For example on my old 20.04 LTS workstation, the Xdebug version is 2.9.3 for some reason, while on my 20.04 LTS laptop it’s 3.0.1, and the latest version is 3.0.2. Depending on your Ubuntu version, the version of Xdebug in the repository might be out of date.

#Phpstorm 10 xdebug how to#

The instructions also include how to install a specific version of Xdebug if you’re using a different version of PHP than what is available on your version of Ubuntu’s repositories, like if you’re using Ondřej Surý’s PPA.Ī note on versions. On Ubuntu, since 18.04, it’s as straightforward as running the following command. The Xdebug installation docs include a detailed list of install commands for a wide range of Linux operating systems. It is possible to use this set up if you are using some form of virtualisation, but that’s a topic for another post. This article covers using either Apache or Nginx installed directly on your Ubuntu machine with PHP, and not running inside any virtual environment. It might not be as completely integrated into your PHPStorm environment as a fully configured set up, but it quickly gets you into the world of debugging PHP line by line.Ī note on local environments. Install a few tools, turn a few things on, hit refresh in your browser, and you’re step debugging your PHP code. The PHPStorm Zero-configuration debugging process requires almost zero configuration.

#Phpstorm 10 xdebug code#

It really is the quickest way to get up and running debugging your code inside PHPStorm with Xdebug. I think that doc might even be the reason I’ve never blogged about it. To be honest, if you can read the Zero-configuration debugging help doc from PHPStorm, you probably don’t need this article. I’ve been using Xdebug on Ubuntu in PHPStorm for going on 4 years now, and as I’ve been actively blogging about my development set up, I thought for sure I’d written about this. Has anyone done a simple writeup of setting up Xdebug with PHPStorm on Ubuntu?Īlso, if you've done a writeup or read one you like on *any* OS, would you mind letting me know so we can get it added to - Matt Stauffer January 21, 2021






Phpstorm 10 xdebug