I started to learn SAP HANA just now. While going through  Open SAP Course I found certain deviation in XSJS debugging configuration.


Reasons for deviation:

  • I was going through first SAP HANA tutorial material on Open SAP ( Introduction to Software Development on SAP HANA, May-June 2013 )
  • And I used SAP HANA Version SPS6, Rev 68 ( SAP HANA Studio and Client installed are developer edition Revision 68 )

I fixed the above deviation by referring to SAP HANA discussion forum. And then I thought it would be better to share my findings here at this forum. So that it helps other new learner like me.

  1. Changing SAP HANA system Configuration. Here we need to add debugger (section)  to “xsengine.ini“.
    • We just need to add “enabled = true” ( parameter ) to debugger (section)
    • Parameter “listenport” is no longer required.
    • HANA_SYS.png
  2. Creating Debug Configuration for XS JavaScript in DEBUG
    • Earlier we were suppose to provide listenport ( from HANA system Configuration ) as port
    • But now we have to provide actual HTTP port 80XX ( XX = Instance Number ) ( e.g:- like for me its 8000)
    • Screenshot 2014-01-25 09.05.48.png
  3. Please add “sap.hana.xs.debugger::Debugger” role . To do so execute below query from HANA System SQL console.
    • CALL GRANT_ACTIVATED_ROLE(‘sap.hana.xs.debugger::Debugger’,‘<ROLE_NAME>’); 


References:

debug server side JavaScript — socket connection problem

Hana AWS – Serverside Javascript Debug timeout | SAP HANA

Complete Guide to XSJS Debugging:

http://help.sap.com/openSAP/HANA1/openSAP_HANA1_Week_05_Unit_05_Debugging_XSJS_Presentation.pdf

I hope that this content is useful for new learners. And all experienced developer please let me know in case I need to add more points here. Or your thought on how to improve this content.

———————–

Prakash Saurav

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

  1. Rakshetha J N

    hello Prakash

    I’m on SP06 I have followed your instructions to set up the debugger ,here is the error I get .

    I have removed the listenport in the ini file and set my debug config to the xs port and given

    sap.hana.xs.debugger::DEBUGGER role is also assigned …I get the following error

    /wp-content/uploads/2014/01/pic1_376796.png

    can you please help ? /wp-content/uploads/2014/01/pic2_376797.png

    (0) 
    1. Prakash S Post author

      Sorry for late response.

      What is the version of your Studio and client?

      If you are using latest version HANA server then make sure studio and client are also up to date.

      Both should be in sync.

      Let me know if this does not helps

      (0) 
    2. Trinoy Hazarika

      Hi

      I had faced the same issue sometime back and when i update my studio and client to a more recent version the issue was resolved(i faced the issue in rev 70 and it got resolved in rev 71).

      Hope this helps.

      Regards

      Trinoy

      (0) 

Leave a Reply