0

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?

5
  • Try devel module. – niksmac Dec 6 '12 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. – Colin Young Dec 6 '12 at 3:04
  • 1
  • Drupal for Chrome should mean you don't have to use the memory hog that is Firefox. – Chapabu Dec 6 '12 at 9:25
  • Thanks. I don't even have Firefox installed on my dev machine. That Chrome plugin should help. – Colin Young Dec 6 '12 at 12:57
4

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.

1
  • 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. – Colin Young Dec 6 '12 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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