How can I see which system events are fired at the page?

For Joomla! 3.x Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Post Reply
Gruz
Joomla! Intern
Joomla! Intern
Posts: 59
Joined: Sat Sep 03, 2005 11:56 am

How can I see which system events are fired at the page?

Post by Gruz » Thu Mar 14, 2019 1:20 am

Hi.

Is there any debug tool to see which plugins events are fired upon a page load or an action like save?

"Joomla! Debug Console" when enabled debug in Global configuration misses most plugin events.
Last edited by toivo on Thu Mar 14, 2019 7:16 am, edited 1 time in total.
Reason: mod note: moved to 3.x Coding

User avatar
lefteriskavadas
Joomla! Intern
Joomla! Intern
Posts: 94
Joined: Fri Feb 05, 2016 6:10 pm
Location: Athens, Greece
Contact:

Re: How can I see which system events are fired at the page?

Post by lefteriskavadas » Thu Mar 14, 2019 1:13 pm

Hi,

You can take a look at the documentation to see all the available plugin events:
https://docs.joomla.org/Plugin/Events

The Joomla debugger is also a way to see all the triggered events. The events triggered on save are not displayed because the system redirects immediately after saving.

Regards
Joomla Extensions https://www.firecoders.com/

Gruz
Joomla! Intern
Joomla! Intern
Posts: 59
Joined: Sat Sep 03, 2005 11:56 am

Re: How can I see which system events are fired at the page?

Post by Gruz » Thu Mar 14, 2019 2:27 pm

Joomla debugger doesn't show e.g. onContentPrepareForm. Non of the content group are shown when I edit an article in backend. So it's just useless for event debug.

Save events are very important to see, if they are fired as well. To see which event I can catch of saving something. With articles it may be possible to look at the docs. But with any 3-rdparty component I must dig that component code to see if it triggers something.

It's very disappointing there is no way to see which event is triggered. I must create functions in my plugins to check if that function is triggered. Too much code digging to see what is fired on something is saved. Especially when working with non-core components.

SharkyKZ
Joomla! Ace
Joomla! Ace
Posts: 1567
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: How can I see which system events are fired at the page?

Post by SharkyKZ » Thu Mar 14, 2019 2:55 pm

There's a hack to enable plugin profiling https://www.daycounts.com/how-to/how-to ... nce-issues. Of course, since it includes editing core files, it will be overwritten when updating.

Gruz
Joomla! Intern
Joomla! Intern
Posts: 59
Joined: Sat Sep 03, 2005 11:56 am

Re: How can I see which system events are fired at the page?

Post by Gruz » Thu Mar 14, 2019 3:22 pm

SharkyKZ wrote:
Thu Mar 14, 2019 2:55 pm
There's a hack to enable plugin profiling https://www.daycounts.com/how-to/how-to ... nce-issues. Of course, since it includes editing core files, it will be overwritten when updating.
Thanks!


Post Reply

Return to “Joomla! 3.x Coding”