I have some .php files in my module in the Model folder.
When on live environment where do I look for these files to set the breakpoints?
Setting the breakpoints in the app folder doesn't trigger so I guess the code is being compiled somewhere else?
Solved! Go to Solution.
Hey @roman_polevecko
In Magento 2, code files compiled and placed in the “generated\code” folder.
We suggest you keep setting your breakpoints in the app folder.
But after adding the breakpoints, delete the same file from “generated\code\Vendor\YourModule” or remove the “generated\code\Vendor\YourModule” directory to make your changes in effect.
Hope it helps.
Hey @roman_polevecko
In Magento 2, code files compiled and placed in the “generated\code” folder.
We suggest you keep setting your breakpoints in the app folder.
But after adding the breakpoints, delete the same file from “generated\code\Vendor\YourModule” or remove the “generated\code\Vendor\YourModule” directory to make your changes in effect.
Hope it helps.
Thank you!
Happy to help!