Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugging symfony app running in docker container #542

Closed
kermorgant opened this issue Dec 14, 2018 · 3 comments
Closed

debugging symfony app running in docker container #542

kermorgant opened this issue Dec 14, 2018 · 3 comments

Comments

@kermorgant
Copy link

Hi,

I'm working on a symfony app running in a docker container (see https://github.com/thecodingmachine/docker-images-php) started like this

services:
    php:
        command: php bin/console server:run 0.0.0.0:8000
        ports:
            - "8000:8000"
        image: thecodingmachine/php:7.2-v1-cli
        volumes:
            - .:/usr/src/app
        depends_on:
            - db

I've installed psysh inside the container and then added \Psy\debug(get_defined_vars(), $this); or eval(\Psy\sh()); in a controller.

But nothing happens in the console where I've started psysh (docker-compose exec php psysh)

Is there something I'm doing wrong ?

@theofidry
Copy link
Contributor

PsySH doesn't support web servers, see #121

@kermorgant
Copy link
Author

Oh, I thought PHP's built-in web server was the exception.

@bobthecow
Copy link
Owner

It works with PHP’s built in webserver, but you have to be running it as a foreground process in your interactive shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants