If you've ever written a module before you must be familiar with the "drupal_set_message" function in core. It's a nice way to write messages to the screen (either as notices, errors or warnings). But say you want to print an array to the screen and see the values, can't really be done that easily (unless you use a print_r but who wants to do that). With the Devel module, you gain a function called dsm() (short form for drupal_set_message). Not only is it shorter to type, but you can put arrays, objects, whatever as a parameter and using the Krumo library. So things come out in nice blocks that you can drill down into. Here's how.
What you'll need: Devel module
How to do it:
- Install and enable Devel
- Add the calls to 'dsm()' into your code
Now you can look at your arrays and objects in style!
