In trying to figure out what is happening in my PSoC4 BLE app, I found that it would be really useful to see what events were being passed to my event handler. Printing event numbers then leads to a tedious process of look up. So I wrote a Powershell script which will generate a c file which allows printing the event codes as strings. I figure other might find it useful, so it is attached. I am not a Powershell guru, so it is pretty simple. It does not understand #ifdefs, so you will generally need to edit the result.
The Powershell script is attached as ParseEnum.ps1. A sample output (with 3 entries removed by hand) is attached as debugEvent.c.
Thanks for your valuable contribution !