cancel
Showing results for 
Search instead for 
Did you mean: 

Where to look for files to DEBUG?

SOLVED

Where to look for files to DEBUG?

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Where to look for files to DEBUG?

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"

View solution in original post

3 REPLIES 3

Re: Where to look for files to DEBUG?

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"

Re: Where to look for files to DEBUG?

Thank you!

Re: Where to look for files to DEBUG?

Happy to help! Smiley Happy

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"