Skip to content
Snippets Groups Projects
Commit 701bd996 authored by jurgenhaas's avatar jurgenhaas
Browse files

Merge remote-tracking branch 'origin/master'

parents 5461ed8f 46461b64
No related branches found
No related tags found
No related merge requests found
Pipeline #355825 passed
......@@ -104,6 +104,7 @@ Note that Solr, Node and Varnish are not enabled by default. See the [customizat
### PHP Debugging
By default, PHP is configured with XDebug being enabled and you should check the instructions for your IDE on how to get started with a debugging session.
For the IDE's IntelliJ and PHPStorm from [Jetbrains](https://jetbrains.com) you find an instruction [here](../../../dev_tools/index.md#debugging-drupal-code).
### Watch the logs
......
---
title: Developer Tools
tags:
- documentation
- tools
---
# Developer Tools
## IDE
We use the IDE's IntelliJ and PHPStorm from [Jetbrains](https://jetbrains.com), because we are convinced to use best toolset in the
market so far.
## Debugging Drupal Code
### Add a PHP Server
First, you have to set up a Drupal environment with the tool [l3d](../docker/l3d/index.md). The tool is
based on Docker containers.
Now navigate to File->Settings in your IDE and create a server:
![Screenshot](/files/screenshots/settings_php_new_server.png)
Set the following values:
![Screenshot](/files/screenshots/settings_php_add_server.png)
**Important: Always use Docker as name of your server.**
Do not forget to add the file mapping to `/var/www/html`.
### Add a new Run/Debug Configuration
![Screenshot](/files/screenshots/configuration_add.png)
First create a new `PHP Web Page` configuration:
![Screenshot](/files/screenshots/configuration_new_webpage.png)
Set the following values:
![Screenshot](/files/screenshots/configuration_done.png)
Select the server you just have created.
**Important: Always use Docker as name of your configuration.**
### Start Debugging
First, check the debug settings in your IDE. It should look something like this:
![Screenshot](/files/screenshots/settings_php_debug.png)
Now activate the `Phone` icon in your IDE:
![Screenshot](/files/screenshots/start_debug.png)
Now you can set your breakpoints and enjoy debugging Drupal code.
## Execute Drupal tests within your IDE
docs/files/screenshots/configuration_add.png

130 B

docs/files/screenshots/configuration_done.png

130 B

docs/files/screenshots/configuration_new_webpage.png

130 B

docs/files/screenshots/settings_php_add_server.png

130 B

docs/files/screenshots/settings_php_debug.png

131 B

docs/files/screenshots/settings_php_new_server.png

130 B

docs/files/screenshots/start_debug.png

130 B

# New in version 2021.3.4:
# New in version 2021.12.15:
--------
- [Ansible Wiki ELK Re-Indexing](ansible/wiki/elk/re-indexing.html)
> __
- [Docker Node, Gulp SASS and BrowserSync](docker/node/gulp-sass.html)
- [](dev_tools/index.md)
> __
This diff is collapsed.
......@@ -224,3 +224,5 @@ nav:
- Introduction: devops/alm/alm.md
- Hosting and Monitoring: devops/alm/hosting_maintain.md
- Tools: devops/alm/tools.md
- Developer Tools:
- Home: dev_tools/index.md
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment