10/6/2023 0 Comments Download laravel xdebug phpstorm![]() ![]() Hit “OK” and then we should see a new Remote Interpreter set up. Select the Docker radio button in the “Configure Remote PHP Interpreter” window, and then select the image name from the drop down. In my case, the image name is devwithlando/php:7.3-apache-2 docker ps Output Move into your preferred projects working directory, create a project directory, enter it, and initialize a lando project. Guide expects user already has the lando cli installed Future posts will explore other IDEs, Xdebug functionality, and quirks of debugging some features on various PHP frameworks. This post will be a tutorial in how to set up Lando (a Docker abstraction) PHPStorm, and a default Laravel app. Too often, I hear that the set up is hard, and that a quick var_dump is good enough. While PHPStorm did give me a leg up, I still found that only time, repetition, and review of the documentation would truly get me to the promised land.įast forward to present times: I still find myself explaining to my colleagues what value a good debugger can provide. I had read about their zero config Xdebug set up, and gave it a shot. At some point, I decided to pay my way out of the IDE set up by paying for PHPStorm. I had issues with the local server setup. Upon searching, I came across Xdebug.Įarly on, a working Xdebug set up constantly eluded me. When I understood that I could view the data in all variables in memory at the paused point of code execution, I knew there had to be a better way for other development workflows than just JS debugging in browser. A little over 3 years ago, I first experienced Chrome’s Devtools JS debugger. Following in the footsteps of my colleagues, I learned to use var_dump, print_r, and exit() to print information about my PHP variables and stop my code execution.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |