Developing in jQuery? Use $.dump instead of alert

Hold on Cowboy

This blog post is pretty old. Be careful with the information you find in here. It's likely dead, dying, or wildly inaccurate.

I just ran into the $.dump jQuery plugin. It sure makes troubleshooting and figuring out jQuery a whole lot easier. Here is how you include it in your page.

  • Download the plugin at here
  • Include it in your HTML like so <script type="text/javascript" src="jquery.dump.js"></script>

  • Now just include $.dump(object) somewhere and replace object with an object you want more information on

The pop-window you will get dump

Did this help you out? It took me a few days to piece together all this information together, I hope this saves you some time (who knows, maybe the future me will be thankful I wrote this down). Let me know your thoughts. [email protected]