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

How to get xdebug working with phpstorm? #404

Open
Ilyes512 opened this issue Oct 25, 2014 · 6 comments
Open

How to get xdebug working with phpstorm? #404

Ilyes512 opened this issue Oct 25, 2014 · 6 comments

Comments

@Ilyes512
Copy link
Contributor

So I tried getting xdebug to work with phpstorm, but I don't seem to get it to work. Anyone actually using it and can confirm its working. It seems to be installed when I check phpinfo. It might just be me not configuring phpsptorm the right way. I got phpstorm to use vagrant, get ssh and use the remote php as the interpreter. The next step should be under php>Servers but there I get this warning when I try to validate the remote environment:

Failed to execute validation script: 'Could not read from "http://local.dev/_intellij_phpdebug_validator.php" because it is not a file.'

Anyone got a idea?

@fideloper
Copy link
Owner

I used https://gist.github.com/dhrrgn/ba29568b23c22bfcb148 to get it working. Note the xdebug.remote_host=10.0.2.2 option is usually set to the IP address given to your host machine on the networked shared between the 2.

@ghost
Copy link

ghost commented Oct 29, 2014

You could put a video with the installation of "Vaprobash + Laravel + XDebug + PHPStorm" in documentation! :)

@fideloper
Copy link
Owner

That's a great idea!

@Ilyes512
Copy link
Contributor Author

Ilyes512 commented Nov 4, 2014

I will look at it this weekend :) Tnx! (Been very busy so a very late response :))

@radusl
Copy link

radusl commented Nov 16, 2014

i also get exactly the same error

@that0n3guy
Copy link

So I got this to work today... but with a little change the the gist above. My logs showed:

Log opened at 2015-06-03 16:34:54
I: Checking remote connect back address.
I: Remote address found, connecting to 192.168.22.1:9000.
E: Time-out connecting to client. :-(
Log closed at 2015-06-03 16:34:54

So xdebut is not able to connect through 192.168.22.1. I commented out xdebug.remote_connect_back = 1 and added xdebug.remote_host=10.0.2.2... now it all works.

I should note, I've not had this issue w/ other vagrant deployments (like with scotchbox) so something must be different w/ how the network is setup I think.

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

No branches or pull requests

4 participants