I am just starting to learn how to write modules and thought devel seemed like a useful tool to have. I now have this working and can successfully view the database requests.

Devel recommends the use of Krumo for debuggging php. However, I can't get it working. I tried uploading Krumo to the modules directory ('sites/all/modules') and using "krumo($items);" in my .module page , but get the error:

Call to undefined function krumo() .

I'm guessing I've installed Krumo to the wrong directory, or that I need to define its location. Any ideas?

Helen

Comments

christefano’s picture

Krumo isn't a Drupal module. It needs to be installed inside Devel's folder in sites/all/modules/devel



Christefano  
Founder, CEO
Large Robot
954-247-4786
http://www.largerobot.com
helenj’s picture

Thanks, all working now.

dwightaspinwall’s picture

I'm using 5.10, have krumo under devel, and devel doesn't use it. However I can call krumo() directly. Anyone know why? Is there a switch somewhere in devel I haven't seen?

salvis’s picture

Please note that Devel for D6+ has a version of Krumo built in.

Ignore this entire thread!

dublin drupaller’s picture

if we ignore the entire thread...we wouldn't know that it's built into devel from d6+ onwards!

just saying...

and yeah..it's a slow day.

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

jeromewiley’s picture

Please provide a good basic example of the use of Krumo/dsm() to display the value of an array on the screen.
Thanks!

(i.e., :

function bla-bla-bla() {
 code here;
 more code here;
 dsm($user_profile);
return $user_profile;
}

Thanks!)