Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: How to print from XSJS to Console

$
0
0

Here is from the SAP HANA Developers Guide (Section 8.8 Server-Side JavaScript Tracing):

 

The SAP HANA XS server-side JavaScript API provides tracing functions that enable your application to write predefined messages in the form of application-specific trace output in the xsengine trace files (xsengine*.trc) according to the trace level you specify, for example, “info”(information) or “error”.

 

If you use the server-side JavaScript API to enable your application to write trace output, you can choose from the

following trace levels:

● debug

● info

● warning

● fatal

 

For example, to enable debug-level tracing for your JavaScript application:

$.trace.debug("request path: " + $.request.path);

Note

You can view the xsengine*.trace files in the Diagnosis Files tab page in the Administration perspective of the SAP HANA studio.

 

It sounds as though the WebIDE with its greatly reduced number of trace files might not show you these. Have you tried using the HANA Studio as described in the online help?


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>