How to effectively DPM an entity metadata wrapper!
So I've run into this frustration multiple times... sucesfully navigating an entity metadata wrapper in Drupal can be infuriating. For me, it felt like you just had to memorize the structure of your entities, and when you were wrong it just punished you with a fatal error. Given how much easier metadata wrappers claim to make things, I sure as heck wasn't feeling it. A lot of clients I work with as well feel the same frustration... and if you aren't familiar with Drupal and find yourself here, I would totally expect you to go running to a different platform. This is an infuriating sector of Drupal to myself and many clients I've worked with.
There's a simple trick to make life easier though:
With that... I suddenly can unravel the benefits of entity_metadata_wrapper and I no longer find myself in a stabby mood! WOOHOO!