Skip to content

Commit b39c1bf

Browse files
committed
Update debugging instructions
1 parent eed310f commit b39c1bf

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,16 @@ With the `-r` option you can force a rebuild of the containers.
4949
## Debugging
5050
The container has XDebug installed and configured.
5151

52+
### PhpStorm
5253

54+
The easiest way to develop and debug using PhpStorm is to use the remote interpreter feature:
55+
1. Go to `Settings` > `PHP` > `CLI Interpreter`
56+
2. Add a new Docker Compose interpreter
57+
3. If you have not already done so, add the Docker Server you are using under Server
58+
4. Configuration file is the `docker-compose.yaml` file in the root of this project
59+
5. Service is `ssp`
60+
6. Choose to connect to the existing container
61+
62+
To trace though e.g. the simplesaml php code, start the container with the dev-start.sh script.
63+
This copies the contents of the /var/www directory in the container to the container/var/www directory on the host.
64+
Then you can map e.g. the container/var/www/simplesaml/src to the remote /var/www/simplesaml/src directory in PhpStorm.

0 commit comments

Comments
 (0)