I have a problem with Magento, I use X-debug for trying to debug Magento and I have the following Exception:
Exception Has ocurred. InvalidArgumentException: Composer could not find the config file: /var/www/site/magento/var/composer_home/composer.json To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
So yeah it's right in magento/var there is no composer.json, BUT this is a Magento core folder and included in .gitignore given by Magento to one of this famous "don't touch" folder from Magento.
This exception is thrown by the function createComposer in vendor/composer/composer/src/Composer/Factory.php
Someone had similar error ? If yes how did you deal with it ?
PS: in case of minus please let me know why so then I can upgrade this post