Debugging Mode

SDK logs many useful information in the debug mode. It gets automatically activated when loading the SDK in Test environment.

However, to see the logs in the Live environment, enter this command in the Console section of the Browser devtools:

 

JavaScript
Moengage.setDebugLevel(2)

You can see many logs which will help to debug any wrong integration as well as it gives many useful information in nice colourful format:

Screenshot 2023-08-03 at 5.09.21 PM.png

Multiple Integrations

SDK might behave inappropriately if you have added it more than once in your website. In that case, you will see the error message in the browser console by enabling the debug mode as 
MoEngage Web SDK initialised multiple times. Please integrate the Web SDK only once!

info

Note

This error message will show up only if you have used the latest SDK integration code which is mentioned in the documentation.

 

Previous

Next

Was this article helpful?
1 out of 2 found this helpful

How can we improve this article?