Search code examples
joomlajoomla3.0joomla3.2

How can I change the system debug position in Joomla 3?


I would like to debug a "continually scrolling" page so I can not have debugging at the bottom of the page.

I have tried adding

<jdoc:include type="modules" name="debug" style="xhtml"/>

To the top of the file (right after the body tag) but that does not seem to help.


Solution

  • Basically I think you need to write your own debug plugin and change the __destruct method. As you have noticed it's not using the modules position any more (don't ask me why), instead you see a the end of __destruct

    echo str_replace('</body>', implode('', $html) . '</body>', $contents);
    

    Which is to say it's always going to put it at the end of the body.