Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8594

Re: How to print from XSJS to Console

$
0
0

Thanks for this information. I tried a very simple xsjs to test this but its not working for me. Could you please tell me what am I doing wrong here ?

 

my test.xsjs

 

function testTrace () {

     $.trace.info('My name is Raghuveer');

}

 

testTrace();

 

my .xsaccess file

{

    "anonymous_connection": "<package name>::incognito",

    "authentication" : null,

    "cors" : [{ "enabled":true }],

    "cache_control" : "must-revalidate",

    "exposed": true

}

 

 

Then I hit the URL in a web browser to execute this xsjs.

 

I looked at the server trace logs by going to location: <servername>:<port>/sap/hana/xs/ide/trace/ and then clicked on both the trc logs corresponding to my server name and tried searching for 'Raghuveer' as a keyword but no result was returned.

 

Then I went to <servername>:<port>/sap/hana/xs/security/ to verify my permissions. I am attaching the screenshot of all the permission i have for this user. I have the debugger role assigned also but still i dont see the trace to print anything in the log.

 

Could you please suggest what am I missing ?

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 8594

Trending Articles



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