You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to debug a data patch which creates a product attribute. The debugger stops at the breakpoint I've set in bin/magento (like in the tut mentioned above) but it doesn't stop in the data patch class. I've made sure that the data patch is not present in the patch_list db table so that the data patch script is executed.
One thing I noticed is that if I run the [setup:upgrade] command from cli, the attribute is created and the data patch class is added to the patch_list table. However, when I run the Debug Script from PhpStorm, the data patch class is not inserted into the patch_list table.
I've also tried to set the File Configuration to /var/www/html/bin/magento (in the tut the path specified is a local project path)
and as soon as I did that I got an error regarding Path Mappings not being configured
but the path is configured
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Based on Trigger an Xdebug breakpoint for CLI commands in PhpStorm.
I'm trying to debug a data patch which creates a product attribute. The debugger stops at the breakpoint I've set in bin/magento (like in the tut mentioned above) but it doesn't stop in the data patch class. I've made sure that the data patch is not present in the patch_list db table so that the data patch script is executed.
One thing I noticed is that if I run the [setup:upgrade] command from cli, the attribute is created and the data patch class is added to the patch_list table. However, when I run the Debug Script from PhpStorm, the data patch class is not inserted into the patch_list table.
I've also tried to set the File Configuration to /var/www/html/bin/magento (in the tut the path specified is a local project path)
and as soon as I did that I got an error regarding Path Mappings not being configured
but the path is configured
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions