logger.debug is not working in share get.js, when I tried to use logger.debug("some message"); I got the following error in the browser TypeError: Cannot find function debug.
Please help me how to enable logger.debug mode in share side.
You can not use logger.debug in share (only in repository js webscripts). I have searched in all the source code of share for "logger.debug" but it is not findable. So this is the real way how to do it:
if (logger.isLoggingEnabled()) { logger.log("LOG ME"); }