dirtystylus + debugging   32

Better way to theme paragraphs edit page [#2870463] | Drupal.org
I eventually wrote a really cool function for traversing down $variables arrays/objects for a string and replacing it with the reference to call that string. (Feel free to steal this everyone, it's awesome):
drupal  drupal7  module:paragraphs  layout  contentadmin  debugging 
june 2017 by dirtystylus
Debug a PHP app in a Docker container with Xdebug | Blog | JoeNyland.me
set xdebug.remote_host to the IP address of your Mac

When the LAMP stack is running in a container though, Docker’s network stack sits between the running processes inside the container and the host machine that’s running Docker Machine. This means that when I run a web server in a container, then open that site in my browser, the web server inside the container will see that the request originated from a host with an IP like which is the IP address of the host (Mac in my case) on the virtual network stack that Docker runs on the host.
docker  php  xdebug  vscode  ide  webdev  debugging  kalabox 
january 2017 by dirtystylus
Entity metadata wrapper (entity_metadata_wrapper) in Drupal 7
// If your object property does not exist, you will get a fatal error. To avoid this you can control the existence of it.
entity_metadata_wrapper  entities  drupal7  drupal  debugging 
april 2016 by dirtystylus
Pesticide - Kill Your Css Layout Bugs
Seriously, if you are up right now trying to solve some inane CSS bug, go get by (h/t )
css  debugging  tools  bookmarklet  from twitter_favs
september 2014 by dirtystylus

Copy this bookmark: