The easiest way to debug this would be to use xdebug + and IDE that can work with it (e.g. PHPStorm, the IDE I use). That way you can put a breakpoint in the course completion code, then trace through to the event handlers and hopefully see why it is not triggering your code.
General developer forum
Issues getting event listeners working
This discussion has been locked so you can no longer reply to it.