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
  • 1.  Debug Webservices from html frontend

    Posted Wed June 17, 2015 07:48 AM

    Hi forum,

    Is it possible to debug a EGL webservice that's invoked by PHP or JavaScript instead of EGL-RichUI?
    (Maybe eclipse debug listeners?)

    Thanks,
    Niek

    Niek_Vandael


  • 2.  Re: Debug Webservices from html frontend

    Posted Wed June 17, 2015 02:59 PM

    Niek,

     

    A couple of possibilities.

    1.) In the EGL knowledge Center, it suggests writing a simple program stub to drive the service for debugging purposes.

    2.) Not sure if this would work for non-EGL clients as that was not the intended design, but take a look at the EGL Blog article written on a new feature to startup a debugServiceServlet in a web container.  Maybe using the right URL, it would work.  You would have to try it.

    https://www.ibm.com/developerworks/community/blogs/3e2b35ae-d3b1-4008-adee-2b31d4be5c92/entry/improve_performance_of_service_invocations_from_rui_preview_and_debug_mode_by_using_j2ee_web_container?lang=en

    markevans


  • 3.  Re: Debug Webservices from html frontend

    Posted Thu June 18, 2015 02:18 AM

    Hi Mark,

    I have tried your suggestion, but unfortunately it did n't allow me to debug the EGL webservice.
    To write a stub and go from there is absolutely possible, but it's not the way I want to debug the app. It would be much better to debug it directly.

    I have achieved to debug the generated Java, but I have no clue on how to break in EGL instead of Java.

    Niek 

    Niek_Vandael


  • 4.  Re: Debug Webservices from html frontend

    Posted Thu June 18, 2015 09:43 AM

    Unfortunately, I don't know of a way to start the debug of an EGL service at the EGL source level except with the stub.

    After further checking, it seems the debugServletService does expect the data in a format that the EGL Javascript knows to produce and has expectations on how datatypes, etc are handled.   This not necessarily the way a non-EGL client would pass them.

    So, you could submit an RFE, but don't know if it would be possible to start up the EGL Debugger on a service request.

     

    Mark

    markevans


  • 5.  Re: Debug Webservices from html frontend

    Posted Fri July 17, 2015 07:24 AM

    I have created a RFE.

    Please vote if you want this feature within RBD:

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

     

    Niek_Vandael