EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
Expand all | Collapse all

Debug on Liberty server (RBD 9.5)

  • 1.  Debug on Liberty server (RBD 9.5)

    Posted Wed October 07, 2015 10:54 AM

    Hi,

    Based on the release notes of RBD 9.5 it should be possible to debug EGL programs on Liberty Server:
    https://www.ibm.com/developerworks/community/blogs/3e2b35ae-d3b1-4008-adee-2b31d4be5c92/entry/Rational_Business_Developer_9_5_is_now_available?lang=en

     

    Debug Improvements:

    • Debug support for the Liberty Profile
      The EGL Debugger has been updated to allow debugging of EGL services, Web Transactions, and UI programs when using the Liberty Profile. Some manual setup is required in this release, but once configured, full debug support is provided. 

     

    What's the necessary setup? Is it described somewhere?

    Niek_Vandael


  • 2.  Re: Debug on Liberty server (RBD 9.5)

    Posted Wed October 07, 2015 09:49 PM

    Hi Niek

    Details on how to set up the debugging with Liberty profile can be found in the Knowledge Centre for RBD 9.5:

    http://www-01.ibm.com/support/knowledgecenter/SSMQ79_9.5.0/com.ibm.egl.pg.doc/topics/pegl_core_debug_liberty_profile.html

     

    TomBaranski


  • 3.  Re: Debug on Liberty server (RBD 9.5)

    Posted Wed October 21, 2015 09:16 PM


  • 4.  Re: Debug on Liberty server (RBD 9.5)

    Posted Mon December 21, 2015 10:57 AM

    Hi,

    Thanks all for the replies.
    I have done all work as described here : http://www-01.ibm.com/support/knowledgecenter/SSMQ79_9.5.0/com.ibm.egl.pg.doc/topics/pegl_core_debug_liberty_profile.html

     

    The server is working correctly: i'm getting my data from the correct EGL Webservice.
    But, it's not stopping at any breakpoints.

     

    Liberty Log file: http://pastebin.com/zUrivJZV

    server.xml file: http://pastebin.com/NqqnzaUB

     

    Niek_Vandael


  • 5.  Re: Debug on Liberty server (RBD 9.5)

    Posted Mon December 21, 2015 08:37 PM

    The server is starting in debug model and the breakpoints cannot be hit in EGL means the Liberty Server attach the JDT debugger rather than RBD debugger.

    Most likely, you should check if the IBMDebug.jar is  configured correctly , you can try to copy IBMDebug.jar to the Liberty share Directory and check the steps in the blog below for more detailed steps . 

    Also , Liberty's configuration should be correctly, the Feature Manger should set some features enabled on the server(like JNDI and some default features)

    TedZhou


  • 6.  Re: Debug on Liberty server (RBD 9.5)

    Posted Tue December 22, 2015 07:10 AM

    Hi TedZhou,

    In your blog post, you are referring to 'Impr ove  perf orma nce  of s ervi ce i nvoc atio ns f rom  RUI  prev iew  and  debu g mo de b y us ing  J2ee  web  con tain e r'
    Since this is not mentioned in the IBM documentation, i have skipped this step.
    In your opinion, is it mandatory to invoke the EGL Debugger?

    I really appreciate the time you took to write this blog since we are in need for this feature.

    I would also like to mention that the IBMDebug.jar in my installation directory file is only 6.94KB. Maybe I do not have a correct version ? (It is located in RBD 9.5 directory)

     

    Thanks,

    Niek

    Niek_Vandael


  • 7.  Re: Debug on Liberty server (RBD 9.5)

    Posted Tue December 22, 2015 03:49 PM

    Niek,

     

    As I read the blog on the liberty debug,  the configuration of an EGL Debug listener as described in the other blog (Impr ove  perf orma nce  of s ervi ce i nvoc atio ns f rom  RUI  prev iew  and  debu g mo de b y us ing  J2ee  web  con tain e r. ) is necessary.

     

    I think this is needed for the RBD debugger to get control when debug is invoked.

     

    Mark

     

    markevans


  • 8.  Re: Debug on Liberty server (RBD 9.5)

    Posted Wed December 23, 2015 02:53 AM

    Hi Mark,

    Thanks for the update.
    I have configured the debug servlet but it's still not stopping in any breakpoints.

    (Guess it's configured correctly since i'm getting the same output as described in the blog post)

     

    * I'm trying to debug my webservices that's invoked via JavaScript (XHR POST).

    * Whenever i'm navigating to a webservice-URL (http://localhost:8443/Services/restservices/LoginService), i'm expecting the debugger stops in a breakpoint, but that's not happening.

     

    Maybe i'm confused on how this debugger works? - do I have to debug my webservices in any special way or is it enough to navigate to the URL using the web browser?

     

    Thanks,

    Niek

     

    Niek_Vandael


  • 9.  Re: Debug on Liberty server (RBD 9.5)

    Posted Wed December 23, 2015 09:35 AM

    Niek,

    thanks for the clearer explanation and to confirm.   I am reading it that you have a non-EGL client and you are trying to start the EGL debugger against the web service and step through/set breakpoints in the EGL source.

     

    If that is true, as I understand it, the use of the Liberty Debugger is just another server to allow you to debug EGL code within the limits of what is possible on the other servers as well.

     

    So, I am pretty sure you are unable to "start" an EGL debug session for an EGL web services from an external source on any server type   This means you are only able to debug an EGL web service using something like a dummy program (or something else EGL like a RUI) to invoke it.  

     

    I also think being able to debug a web service as the first thing invoked is an open requirement .

     

    If I have misunderstood your requirement, then please let us know.

    markevans


  • 10.  Re: Debug on Liberty server (RBD 9.5)

    Posted Wed December 23, 2015 10:15 AM

    Hi Mark,

    Absolutely correct: I am trying to start the EGL debugger against the web service from a non-EGL client.
    I thought it was possible to debug the generated code using the Liberty Profile.

     

    Fortunately I misunderstood the RBD V9.5 release notes & thought my RFE was resolved:

    https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=74239

     

    Thanks for your answers and clarification!

    Niek

    Niek_Vandael