I'm creating some REST routes for my custom resources and I'm having some trouble with the debugging aspect of development.
Every time I change the resource's code, should I need to XDebug it, I need to clear Drupal's cache (
drush cr) for the debug to work.
I have successfully disabled the
ResourceResponse cache mechanism, so that when the data has changed in Drupal, it is reflected on the response.
Although, I think that maybe due to the annotation mechanism, it's caching the function of my REST Resource, and, subsequently, when I change it, those changes don't propagate and Xdebug doesn't pick them up.
I also noticed that
git signals that the resource plugin file has changed every time I clear the cache, which I think might be related.
Does anyone have some pointers they can share to overcome this?