Debugging PHP in Docker with an AI Agent and Xdebug

For a while now I have used LLMs to automate parts of my work. One of those parts is debugging with Xdebug. PhpStorm has an MCP server for it, but it only handles simple GET requests — so I wrote my own.

<?=’Hello world!’;

Many people start learning a new programming language with a simple program. It is called “Hello world!”. But even this simple program can be written badly in PHP. In this post, I want to show you a good way to write “Hello world!”.

Continue reading<?=’Hello world!’;