Debugger exits with "Debug session was finished without being paused"

Hi, Im using PhpStorm on Ubuntu and Im runinng my app with docker compose.

The PHP and code is on a container and I have an nginx container that listens on port 80 from the host and passes it to the container.

This is the xdebug config:

zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=host.docker.internal

and I have an entrypoint that sets the appropriate ip to host.docker.internal.

The CLI Interpreter shows Xdebug version.

When making a request to the app I get this window, I hit accept and the breaknpoint is not hit:

api.local is handled by the nginx container and passed to the container with php and xdebug.

 Could it be because the app uses dependency injection and objects are not created with "new" so their class is not known by the IDE. Because the script that starts the app is debuggable but not the whole app.

Any ideas?

0
1 comment

Yup, if a breakpoint is hit on an object outside of project (IDE doesn't have a code for that object) - debugging in PhpStorm would result in the issue described above.

1

Please sign in to leave a comment.