Inside the nginx directory, create a new file called default.Ubuntu install xdebug php 7.2 How to install Xdebug on PhpStorm Apache 2 PHP 7.4 WebInstantly share code, notes, and snippets. Inside it, create two directories: nginx and php. In your project's root directory, create a new directory called docker. Usually, I start with an PHP and a nginx container. You can learn more on Laravel's documentation. Just with this initial setup, you have a solid starting poing for developing an awesome web application. Now that we have a brand new project to work with, let's open it in PhpStorm. Open up a terminal and run: composer create-project laravel/laravel xdebug-test Make sure you have the following things installed on your local: composer, Docker and PhpStorm.įor the purpose of this article, let's create a brand new Laravel application. In this article, I'm going to talk about how to debug your PHP application running in a Docker container while using PhpStorm. Okay, enough talk, let's get to work, shall we? ![]() ![]() ![]() It has all the featues you may wish for an IDE and it is built for smoother developer experience. PhpStorm is another great tool that makes our lives easier. If you are curious to know more about it, you can find lots of useful information on their website. If you are a PHP developer, you've probably heard or even worked with Xdebug.įor those of you that haven't heard of this amazing tool: Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience.Īs you may have guessed it, it's a tool used for debugging.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |