0

When running xdebugger in hook_init(), I noticed that the debugger was stopping at same break points more than once. Why is this so? Will it not affect the page load time?

0
1

If I print some text within hook_init(), it is being printed only one time. This will not reduce the performance. Also hook_init() is called only once, from Drupal core.

2
  • Ok, but that s not my Question why in Xdebug init is called more than once ? – GoodSp33d Mar 1 '12 at 15:30
  • 1
    You should be able to see the backtrace how it's called, post that in your question. As @sathishkumar mentioned, Drupal core does not call that hook twice. – Berdir Mar 2 '12 at 20:23

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.