- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
If you've found my answer useful, please give"Kudos" and "Accept as Solution"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
If you've found my answer useful, please give"Kudos" and "Accept as Solution"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Where to look for files to DEBUG?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Where to look for files to DEBUG?
Happy to help!
If you've found my answer useful, please give"Kudos" and "Accept as Solution"