I have subscribed to an event as below in the Tridion Event system and when I try to debug the code the break point is not getting hit.
EventSystem.Subscribe<Page, PublishOrUnPublishEventArgs>(OnPagePublishOrUnPublishPost, EventPhases.Initiated);
I have tried subscribing to the following event as well but this too not working.
EventSystem.Subscribe<Page, PublishEventArgs>(OnPagePublishPost, EventPhases.Processed);
When I tried the Save event of page that is working correctly. The Following code is working correctly.
EventSystem.Subscribe<Page, SaveEventArgs>(OnPageSavePost, EventPhases.Processed);
How can I debug this issue?