Manchmal habe ich das Gefühl, dass ich erst seit gestern Computer benutze. Oder wie kann man so sehr auf der Leitung stehen.
Xdebug hat prinzipiell immer funktioniert. Allerdings wurden nur Breakpoints in der public/index.php
eines Projekts beachtet. Alle anderen wurden ignoriert. Und die Lösung liegt so sehr auf der Hand, wenn man nur fünf Minuten darüber nachdenkt. Das Mapping der lokalen Verzeichnisse auf jene im Container hat ganz einfach gefehlt.
Und das Schlimmste: Bei jeder Debug Session wird dick eine Meldung angezeigt, dass es im Projekt keine gemappten Verzeichnisse gibt. Die Meldung (dick in Rot) habe ich konsequent und erfolgreich ignoriert. Bis zuletzt als ich endlich mal draufgeklickt habe und ein Mapping auf oberste Ebene hinzugefügt habe.
Und zu allem Überfluss steht es auch noch groß und breit in der Dokumentation:
4 PhpStorm will ask you what mapping to use, so it can figure out how to map the path inside the container to the path on your workstation. The first time you do this with a project, PhpStorm will pop up a “server” dialog box to set the mapping. The default will work, but it’s best to click the checkbox to map the whole project directory to /var/www/html.
Na ja, mein Mutagen Problemchen ist allerdings bisher nicht gelöst. Da muss ich mal noch weiter schauen.