Sorry for the noob question but I have installed Xdebug and its working.

How do I debug a specific module? Let's say I have a hook_form_alter in one of my modules. I can toggle a breakpoint at this hook. What happen's now is that xdebug is showing you variables and stops at the breakpoint. It only shows me the variables where it is evaluating some alter-forms from the frontpage.

I want to debug where my hook_form_alter is really comming in to place, let's say on a node/add/contenttype page.

How do I achieve this???

Thanx!

Comments

j_ten_man’s picture

What are you using with xdebug? Eclipse? or something else? Normally if you put a break in your hook_form_alter(), it should break right there and you can step through line by line.

timlie’s picture

I'm using Aptana...

anil614sagar’s picture

Check out the steps to debug drupal using eclipse here http://www.anilsagar.com/blog/debug-drupal-using-xdebug-eclipse-and-wamp

Cheers,
Anil Sagar,
Lead Drupal Developer,
Azri Soulutions,
http://azrisolutions.com/

zzadik’s picture

I installed xdebug and the debugger steps in and breaks at break points I place at function declarations in my .module files.
The problem is that if I try to "Step into" the functions, the debugger jumps to the next function call, and doesn't allow me to debug the code inside each function.
I guess this is not a limitation of the debugger, but something I configured\doing wrong.

Any suggestions?