Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DevOps Tools
Documentation
Commits
52aa9af8
Commit
52aa9af8
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
docker/l3d#65
Add xdebug documentation
parent
9c3609b3
No related branches found
No related tags found
No related merge requests found
Pipeline
#34295
passed
4 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/docker/l3d/drupal.md
+32
-0
32 additions, 0 deletions
docs/docker/l3d/drupal.md
docs/files/screenshots/Screenshot from 2021-01-25 18-59-52.png
+3
-0
3 additions, 0 deletions
...files/screenshots/Screenshot from 2021-01-25 18-59-52.png
with
35 additions
and
0 deletions
docs/docker/l3d/drupal.md
+
32
−
0
View file @
52aa9af8
...
@@ -5,6 +5,8 @@ tags:
...
@@ -5,6 +5,8 @@ tags:
---
---
# L3D and Drupal Projects
# L3D and Drupal Projects
## Introduction and overview
We do provide a couple of project templates for Drupal projects out of the box:
We do provide a couple of project templates for Drupal projects out of the box:
-
[
Drupal 8
](
/composer/project/d8
)
-
[
Drupal 8
](
/composer/project/d8
)
...
@@ -175,3 +177,33 @@ DOCKER4DRUPAL_TRAEFIK_KEY=privkey.pem
...
@@ -175,3 +177,33 @@ DOCKER4DRUPAL_TRAEFIK_KEY=privkey.pem
To update your Traefik configuration and restart the service, go to one of your
To update your Traefik configuration and restart the service, go to one of your
projects in L3D and call
`ahoy traefik rewrite`
to get everything setup once and
projects in L3D and call
`ahoy traefik rewrite`
to get everything setup once and
forever.
forever.
## Using XDebug
Debugging PHP can be a game changer in Drupal development. In the context of L3D
in combination with the composer plugin
[
Docker4Drupal
](
/composer/plugin/d4d
)
this is provided out of the box and configured very easily. We describe the
steps for PhpStorm, but other IDEs should be very similar.
As XDebug comes with a performance hit, it is turned off by default. When you
need it, simply call
`ahoy debug on`
in you L3D container of the project you
want to debug and the scripts will reconfigure the PHP container and refresh
it with a few seconds. When you've finished debugging, you may want to turn it
off again with
`ahoy debug off`
.
XDebug version 3 connects to port 9003 of your IDE and PhpStorm is preconfigured
by default to list on that port.
You can then just enable debugging in PhpStorm and wait for the first request
which will prompt you to configure the details. Or you configure actively the
debug configuration:

The name and the server name should both be called
`Docker`
. And the mapping
needs to be configured from your project root directory on your host to the
path
`/var/www/html`
in the container.
With this setup, you can debug both web requests coming from the browser and
CLI commands for PHP which is executed inside the PHP container like e.g.
drush - all with the same setup.
This diff is collapsed.
Click to expand it.
docs/files/screenshots/Screenshot from 2021-01-25 18-59-52.png
0 → 100644
LFS
+
3
−
0
View file @
52aa9af8
130 B
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment