21

When developing AL Code in VSCode, would be great to view the number of subscribers for every event triggered in the code. Something like the numer of references currently visible for variables or function definitions.

So that, reading the code, we can have an idea of the real execution flow.


Would be also great if, moving the mouse over the event trigger, we could see the list of the subscribers (object type, ID, and procedure name).


Thank you

Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team

Comments

M

Voted for the any way to find the subscribers. Maybe I don't understand the premise of the author's solution but it sounds limiting what he is proposing because you would need access to all the BC extensions for that environment.An alternative and more likely solution would be to have something similar to the Performance Profiler in BC but instead of only grabbing events/procedures that meet a time consumed threshold, all event publishers and their event subscribers are recorded.

Category: Development

M

Voted, It will be also good if we can know the sequence of event subscriber execution.

Category: Development

M

Voted, but I would go the step further and show the Subscriber Code (for example in a own box under the Publisher function). The next step would be to make this code editbale which automatically updates the Source Code in the subscriber codeunit (or creates a new one).

Category: Development

M

voted, an older complementary idea here (except the parameter to skip base trigger, as it was implemented through isHandled) Microsoft Idea (dynamics.com)

Category: Development