문제

I have some code in XSJS to populate/Update my Hana DB based on some conditions. I am looking for a mechanism where I can print few comments to console or to some log file.

I know i can use console.log(); for normal javascript on web browser but it does not work on XSJS. Some other implementation of Server Side JS like node.js gives echo command. Is there something similar for XSJS ?

Thanks in advance.

도움이 되었습니까?

해결책

Use $.trace.debug("Type your log comments here"); within the xsjs file and then you can see the logs in trace file under the 'Diagnosis File' section for system.

Before that you need to change the 'Database Trace' configuration for XS-Engine under the 'Trace Configuration' Section.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top