-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Xdebug: don't work #1193
Comments
The same thing! Can't configure debugging in PhpStorm - it doesn't see any connections from Xdebug. |
I think it conflict mac os high sierra |
OK, seems I solved the issue. php-fpm section of docker-compose.yml is standard, no changes
php.ini
Where
Good luck! |
I fixed it. |
I have same issue |
@tronghieu are you also using PHP Storm? I so I probably can't help, but I do have it running really well using Codebug as the client (macOS app similar to MacGDBp). |
@jeff-h thank for your response. I'm using PHPStorm. |
@rodion-arr Thanks bro |
@rodion-arr Wouldn't Some guides say you need to use ssh-related configuration too to get this working, some don't. I'm so confused! Some say use @dmz9 Says to remove Currently running OSX High Sierra. Someone help me! :( |
Here's the complete contents of my I use it with Codebug — sorry if I'm convoluting a thread perhaps revolving around PHPSTORM oddities? Nonetheless I thought a working config might be a handy reference point.
I'm firmly in the "use Assuming you've set *) only enable xdebug in the workspace container if you really need it; it slows down |
@zlanich Sure, you're right, this is the major flaw of the solution |
@jeff-h What is |
@jeff-h Your config worked! Holy cow! That |
Awesome — glad it helped :) I also feel like I spend ridiculous amounts of time getting this all set up, and keeping it that way. I definitely have a love/hate relationship with docker stuff. It's way too painful to setup, but way too awesome to give up. Sorry about the |
No problem. This is the first time I've used Docker, but I've had my fair share of seemingly endless struggles getting PHPStorm + XDebug working over and over again lol. As I'm putting all this together, I'm eventually going to go back into the Laradock issues and post my found solutions on any of the relevant threads so other Mac users can hopefully benefit. |
With @jeff-h config,I managed to get it working to. Thanks dude. Versions: My laradock/php-fpm/xdebug.ini:
PhpStorm, important, set this to laradock or whatever you have set for PHP_IDE_CONFIG: |
@jeff-h thank you, switching to use xdebug.remote_host=dockerhost instead of xdebug.remote_connect_back=1 solved my problem |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi again 👋 we would like to inform you that this issue has been automatically |
Info:
$ docker --version
): Docker version 17.09.0-ce, build afdb6d4$ git rev-parse HEAD
): 903c774Issue:
Xdebug don't work.
In phpstorm show:
Waiting for incoming connection with ide key 'PHPSTORM'
in docker-composer.yml
workspace:
build:
context: ./workspace
args:
- INSTALL_XDEBUG=true
php-fpm:
build:
context: ./php-fpm
args:
- INSTALL_XDEBUG=true
xdebug.ini
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.remote_connect_back=0
xdebug.cli_color=1
xdebug.profiler_enable=0
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000
xdebug.remote_host=dockerhost
xdebug.idekey=PHPSTORM
The text was updated successfully, but these errors were encountered: