[BUG #8603] Hardening the 'debug' method to be only functional in the 'debug' mode
[BUG #8603] Added the 'logThis' method to offer a non-blocking solution. Added two API samples to improve documentation for these two methods.