Last active
February 11, 2021 21:40
-
-
Save froemken/b305222442f20d45d9fb960f960a374e to your computer and use it in GitHub Desktop.
Configure PhpStorm for DDev xdebug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wichtig: Der nfs_mount des ddev-Container darf nicht aktiviert sein. Da gibt's irgendwelche driver-Konflikte. | |
In PhpStorm -> Settings -> Build, Execution, Deployment -> Docker -> Docker for Mac einrichten. | |
--> Path /Users -> /Users | |
In PhpStorm -> Settings -> Languages & Frameworks -> PHP | |
Language Level auswählen: Beispiel: PHP 7.2 | |
CLI Interpreter konfigurieren -> Button: ... | |
Neuen CLI Interpreter anlegen: From Docker, Vagrant, Vm, ... | |
Radio-Select auf "Docker Compose" setzen. Es geht auch "Docker", dann jedoch nur UnitTests. Nicht Functional Tests. | |
Server "Docker" auswählen | |
Configuration files: Die docker-compose.yaml aus .ddev auswählen. | |
Versteckte Verzeichnisse können im Finder mittels Shift+CMD+. angezeigt werden. | |
Service: "web" auswählen | |
Environment variable: | |
Abgleichen mittels "ddev debug compose-config" | |
- COLUMNS: 139 | |
- DDEV_APPROOT: /Users/[yourUser]/htdocs/typo3_95 | |
- DDEV_DBAIMAGE: drud/phpmyadmin:v1.6.0 | |
- DDEV_DBIMAGE: drud/ddev-dbserver:v1.6.0-10.2 | |
- DDEV_DOCROOT: public | |
- DDEV_GID: 20 | |
- DDEV_HOSTNAME: typo395.ddev.local | |
- DDEV_IMPORTDIR: /Users/[yourUser]/htdocs/typo3_95/.ddev/import-db | |
- DDEV_MARIADB_LOCAL_COMMAND: [leerer string] weglassen | |
- DDEV_PHP_VERSION: 7.2 | |
- DDEV_PROJECT_TYPE: typo3 | |
- DDEV_ROUTER_HTTP_PORT: 80 | |
- DDEV_ROUTER_HTTPS_PORT: 443 | |
- DDEV_SITENAME: typo395 <-- Projektname aus ddev config | |
- DDEV_UID: 501 | |
- DDEV_URL: http://typo395.ddev.local | |
- DDEV_WEBIMAGE: drud/ddev-webserver:v1.6.0 | |
- DDEV_WEBSERVER_TYPE: nginx-fpm | |
- DDEV_XDEBUG_ENABLED: false | |
- LINES: 36 | |
Lifecycle: Always start a new container | |
PHP Interpreter path: php | |
--> Nicht irritieren lassen, wenn PHP-Version nicht stimmt. Hier wurden nur die ENV Vars noch nicht übernommen. | |
PhpStorm -> Settings -> Languages & Frameworks -> PHP -> Test Frameworks | |
Neues Test Framework hinzufügen: PHPUnit by remote Interpreter | |
Use composer autoloader: /var/www/html/vendor/autoload.php | |
Default configuration file: /var/www/html/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml | |
Die Pfad müssen manuell eingetragen werden. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment