![]() ![]() Everything else will work after that just to be certain, you should also use the PhpStorm “Validate Debugger” dialog (task C. This will re-install Xdebug on the updated container. If that ever happens, you only need to run the two commands from Step B again, which are: docker exec devkinsta_fpm bash -c 'bash /www/kinsta/private/setup-xdebug.sh' When DevKinsta updates the Docker container, it can happen, that the Xdebug module is deleted again from your container. That’s it! You can use the built-in Step-Debugger of PhpStorm with your DevKinsta website. I recommend to start from scratch: 1) /phpstorm/quickstart/debugger. Important settings:Įnable “Can accept external communications” xdebug Share Improve this question Follow asked at 11:36 Jakub Kratina 634 6 14 web server port and xdebug port are 2 DIFFERENT things. Within 1-2 seconds you should see a list of green checks which indicate that everything is okay.URL to validation script: “ enter the URL of your DevKinsta website Go to Preferences -> PHP -> Debug and change the Debug port. Local Path: “/Users/” same as in task 8 above Also, the default port of Xdebug changed from 9000 to 9003, so we need to change it. Add a new path mapping that points to your DevKinsta/public folder:.Edit the path mappings of the new CLI interpreter.Click on the wrench icon in the toolbar: You can also get to the project settings by going to: PHPStorm > Preferences (OSX) or File > Settings (Windows, Linux). Image name: “ kinsta/devkinsta_fpm:0.1.3” To get started configuring your PHPStorm IDE open the application settings. Server: Docker (the one you created in task 1 above) In the dialog click the plus-icon and add From Docker, Vagrant, VM, WSL, Remote, … But Xdebug also profiles for you and PhpStorm can interpret the results, which is great as it means you never have to leave PhpStorm To enable the profiler, edit your php.name: drupal10 recipe: drupal10 config: webroot: web services: appserver: xdebug: develop,debug overrides: environment: Support debugging CLI with XDEBUG. In PHP click the “…” button to configure your CLI Interpreters Enable the XDEBUGSESSIONSTART line, if you want to start a Xdebug session every time Lando starts.Ini_path="/etc/php/$version/fpm/conf.d/20-xdebug.ini"Įcho echo "= Installing $package =" apt-get -y install $packageĮcho "= Prepare $ini_path =" cat > $ini_path Docker click the plus-icon to add a new Server.Ĭonnect to Docker daemon with: “Docker for Mac” Update-alternatives -list php | while read bin do # Get a list of all present PHP versions and setup Xdebug for each of them. We use that script to install and configure the Xdebug module on the relevant Docker container (in the next step) #!/bin/bashĮcho "= Updating apm =" apt-get update Name the script setup-xdebug.sh.Įxample: On my machine, the script is “ /Users/philipp/DevKinsta/private/setup-xdebug.sh” Usually, that folder is in your user’s home directory. Place the following bash script in your DevKinsta/private folder. However, most steps are generic, and you do not need to change anything just copy-paste what’s in this guide. ![]() Note: When you see a emoji, you need to customize a value. So, here is my documentation and guide, which will save you a lot of time. I’ve struggled a bit with setting up Xdebug + DevKinsta in PhpStorm. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |