I'm already familiar with xdebug, and debugging Magento 1 using it. Now that I'm working with Magento 2, I'm finding that my debugging sessions are failing with error messages like:
Cannot find a local copy of the file on server /my-magento-2-docroot/generated/code/Magento/Quote/Model/QuoteRepository/Interceptor.php
This is to-be-expected, since the code is on an actual server, running in "production" mode, with all dependencies compiled.
In Magento 1, the workaround for this was to simply not use code compilation, but I'm not sure if this is an option in Magento 2. Even when Magento 2 is in "developer" mode, it's trying to load files from the
How can I debug a Magento 2 store without copying all of the generated code files down to my machine?