I'm in the middle of trying to create some contextphp code and drupal_set_message debugging is getting old fast. Is there any tool that would allow me to specify a url "context" (e.g. /node/6) and then have a PHP editor that could dynamically execute the code in the window as if it was running in that context?

  • Try devel module.
    – niksmac
    Commented Dec 6, 2012 at 2:23
  • It's been a while since I really dug into devel. Looks like it's got something similar in the Firebug plugin (but then I need to run Firefox instead of Chrome). It would be nice to have a cross-browser solution. Commented Dec 6, 2012 at 3:04
  • 1
    – niksmac
    Commented Dec 6, 2012 at 3:07
  • Drupal for Chrome should mean you don't have to use the memory hog that is Firefox.
    – Chapabu
    Commented Dec 6, 2012 at 9:25
  • Thanks. I don't even have Firefox installed on my dev machine. That Chrome plugin should help. Commented Dec 6, 2012 at 12:57

1 Answer 1


If you are running locally, you can install Netbeans and Xdebug and set break points, watches and everything.

If you want just a little better then drupal_set_message() you can run devel and the output from dpm() will be formatted by Krumo. That's at least helpful.

  • I'm going to have to look at the Netbeans option eventually. My issue isn't with the dsm output. It's the whole update php code in context, save, switch to another window, refresh, examine output, back to context, click edit, click php, resize code window, edit, repeat cycle. Commented Dec 6, 2012 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.