cancel
Showing results for 
Search instead for 
Did you mean: 

How to print in browser console in sapui5?

0 Kudos

Hi experts,

     console.log("print something"); is not working in sapui5 and i don't want to use alert also.

Is there any alternate solution for this?

Thanks in Advance,

Regards,

Ajit Kumar B.

Accepted Solutions (1)

Accepted Solutions (1)

galenprabhu
Participant
0 Kudos

Hi Ajit,

Try to use console.log in script tag or in js file

Regards,

Prabhu M.

0 Kudos

Hi Prabhu,

Thanks for your reply could you please elaborate.

galenprabhu
Participant
0 Kudos

Hi Ajit,

Try This.

Output will be like ,

Thanks & Regards,

Prabhu M.

Answers (1)

Answers (1)

flotxi
Participant
0 Kudos

If you are using eslint checks you might get an error using this method.

I would recommend you to use jQuery.sap.log.info("Your Info Message");

More detailed information can be found here:

https://help.sap.com/doc/saphelp_uiaddon20/2.05/en-US/9f/4d62c6648a423d85aaf2bfc2c7ddfe/content.htm?...