Sometimes you just want to visualise some things
bower install debugmode --save-dev
download the repository or zip file and include dist/debugmode.min.js
- Include the script and run it through your build system or just include it
<script src="debugmode.min.js"></script> - Create a trigger on an element through a class
button class="debugmode-trigger"or a data attributedebugmode-triggeror if you are afraid of clashes you can use the more traditionaldata-debugmode. - add styling for your debugmode, it sets a class on the body
debugmode, so adding.debugmode * { outline: 1px solid red !importantshould do the trick.