If you have breakpoints set, either manually, or from leaving "Break at first line in PHP scripts" checked, you should have output now in the debugger. Now set a breakpoint in your code, and refresh the page. This will tell chrome to set the xdebug session key when you reload the page. Click on the gray XDebug Helper icon at the top right of your window and select the green "Debug" button. Right now the debugging session is not enabled. It will say it is waiting for incoming connection from 'archipelago' Now, you can use Run > Debug and select the Archipelago named configuration that we created in the previous steps. Hit the button (top right bar of PHPStorm) that looks like a telephone, for Start Listening for PHP Debug Connections. Under "IDE", select "Other", and in the text box, enter "archipelago" Once you have the extension installed, right-click on the bug icon in the top right of your chrome browser window and select "Options" to configure the IDE key. We have had success using the XDebug Helper extension in Chrome. If you get a warning about missing php.ini file, that is OK, our file has a different name in the container ( xdebug.ini) and is still being read correctly. You should get a series of green check marks. Url to validation script: Hit VALIDATE.Path to create validation script /archipelago-deployment/web.Use these settings in the following validation window: With Run > Edit Configurations still open, you can hit the link that says "Validate". Note: If you try to validate your connection, it will fail. IDE Key: archipelago (this matches the key set in our container).Server: select docker-debug-server from dropdown (we created this in step 3).Filter debug connection by IDE Key: yes, select the checkbox.Name whatever you want, I called mine Archipelago. Hit the + Button to create a new PHP Remote Debug. In the Absolute path on the server add /var/www/html.Under project files, select the top-level archipelago-deployment directory in the File/Directory column.Use path mappings: yes, select the checkbox.Go to Preferences > Languages & Frameworks > PHP > Servers. However, leaving this box checked can be useful for making sure the connection is working at first, before you have set any internal breakpoints. If you leave this selected, you will have to manually step through a breakpoint from Drupal's main index.php file on every request, which is quite annoying. (optional) Break at first line in PHP scripts: uncheck.Can accept external connections: yes, select checkbox.In this window there is an Xdebug section. Go to Preferences > Languages & Frameworks > PHP > Debug or Settings > PHP > Servers. In PHPStorm, open your archipelago-deployment project. So we have reloaded the containers and now you are ready for Part 2. See appendix at the bottom of this page.) (If you are running your development on a Linux system, you may need to make a modification to your xdebug configuration file on the esmero-php-dev container. (To make these commands easier to remember, consider making bash aliases in your. To stop the containers in the future, run docker-compose -f docker-compose.yml -f down. we now have an extra PHP container called esmero-php-debug. This version of docker-compose up uses an override file to modify our services. Run the following commands from your /archipelago-deployment directory:ĭocker-compose -f docker-compose.yml -f up -d It involves interacting with the esmero/archipelago-docker-images repo and the esmero/archipelago-deployment repo. This document describes how to enable Xdebug for local PHP development using the PHPStorm IDE and a docker container running the Archipelago esmero-php:development image. Ingesting New Digital Objects and Collections using Spreadsheets or Google SheetsĬare & Coding + Fixing / Acknowledgments / License Working With Twig in Archipelago (getting started with custom Twig templates) How to Create a Webform as an Input Method for Archipelago Digital Objects (ADO)Ĭustomizing Webforms (Modifying allowable file extensions) Moving from archipelago-deployment to archipelago-deployment-liveĭigital Objects and Collections Creation, Metadata and Cataloging, General Workflows Installing Archipelago Drupal 9 on Ubuntu 18.04 or 20.04Īdding Demo Archipelago Digital Objects (ADOs) to your Repository Installing Archipelago Drupal 9 on OSX (macOS) Archipelago's Philosophy & Guiding Principles
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |