-
Notifications
You must be signed in to change notification settings - Fork 44
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 could not open the remote debug file '/tmp/xdebug.log'." #12
Comments
Is this php5 issue? we no longer support php5 |
Sorry for this misunderstanding. I just copy-pasted code from other issue and didn't update it. I know for sure that this file not exists at the very beginning because yesterday I troubleshot xdebug whole day... |
Try adding the env var |
I added:
Ran
|
@VladSavitsky as I see adding Could you confirm that the pre-creating of |
No, it's not work as expected.
Adding Why empty file couldn't be created during container building? Is there some problems with it? Thanks. |
You may enable I agree that Xdebug debugging should be documented because it is not obvious now.
In the case of docker containers, all logs must be streamed to a container output instead of a file where it is possible. |
I can't test it right now. What is default value for |
The setting Once you need debugging Xdebug you may add this environment variable
I tested it by running this command: You may see Xdebug remote logs in the output:
|
I believe this information could be useful for others and docs should be updated. Thanks. |
With the current Xdebug configuration I can see notices like this: Could be related to docker-library/php#358 (comment) |
Did you ever find a fix for this? Seeing this too, and while everything else works fine with |
Sorry, I don't want to collect debug info because there is a solution found already.
Problem
When xDebug enabled and run any drush command always get error messags:
Reasons
/tmp/php5-xdebug.log
not exists until you start debugging session in IDE and reload page in browser. Only then this file will be created.When I enable xDebug and run any drush command (which is CLI) I got this error.
Solution
Source: geerlingguy/drupal-vm#1813
In Dockerfile you can append this to a RUN command
Could you please add this temp file creation to Dockerfile?
The text was updated successfully, but these errors were encountered: