How to debug fmd plugins

Reference: https://blogs.oracle.com/cwb/entry/debugging_fmd_plugins

But these won't be visible unless you fmd in debug mode.

Steps below provide example how to enable debug output.