Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGL Development Tools » How do I debug my preview?
How do I debug my preview? [message #760311] Thu, 01 December 2011 20:18 Go to next message
Joe Pluta is currently offline Joe PlutaFriend
Messages: 62
Registered: November 2011
Member
Okay, maybe I'm completely crazy, but I thought I would be able to debug end to end with EDT. So I went in and set a breakpoint in my client, then right-clicked on it and said Debug As... EGL Rich UI Application. I hit the breakpoint in my client and so I set a breakpoint in my library (which is called by my service). I hit the Resume button and... the application ran to completion (calling my service and retrieving the data) and updated my browser page without stopping at my breakpoint.

Darn! I tried stepping into the call to the service as well, but no love there. Is there some magic I need to do to enable breakpoints in the server-side EGL?
Re: How do I debug my preview? [message #760312 is a reply to message #760311] Thu, 01 December 2011 20:23 Go to previous messageGo to next message
Justin Spadea is currently offline Justin SpadeaFriend
Messages: 66
Registered: July 2009
Member
Hi Joe,

Are you running the service on the test server or a server like Tomcat? If using the test server, it is always running in debug mode, so you can debug your server side by setting breakpoints in the EGL source (the RUI client does not need to be in debug mode since they are separate processes).

If you're running on Tomcat then you'll be running the 'deployed' service and not a debug-enabled version.

Note that to use the test server your resource binding must be the workspace:// format.

-Justin
Re: How do I debug my preview? [message #760324 is a reply to message #760312] Thu, 01 December 2011 21:12 Go to previous messageGo to next message
Joe Pluta is currently offline Joe PlutaFriend
Messages: 62
Registered: November 2011
Member
I'm not consciously running the service at all. I assume it's running on the test server, but all I'm doing is right-clicking on the client EGL source code and selecting Debug As... EGL Rich UI Application. I have breakpoints set in my server, but I didn't set anything that tells it where to run. I use a dedicated service, and it works - I get all my data from the host (this is the SQL code from the other thread). So how do I invoke my client in such a way that breakpoints in the server code are enabled and honored?

P.S. Which resource binding are you referring to? As I said, I call my service from the RUI by using a dedicated service. Within my server code I invoke my SQL using the following:

ds SQLDataSource = SysLib.getResource("DB2CONN1");


Joe

Re: How do I debug my preview? [message #760326 is a reply to message #760324] Thu, 01 December 2011 21:35 Go to previous messageGo to next message
Justin Spadea is currently offline Justin SpadeaFriend
Messages: 66
Registered: July 2009
Member
Okay, yes, dedicated services in the preview pane and debug mode are always run on the test server, so no bindings come into play here (REST services require the workspace:// URI to have the service run on the test service during development, and then you'd use http:// to invoke the deployed version).

I tried out a couple applications on my machine and my breakpoints are being hit. Can you try putting breakpoints in more locations? The breakpoints are driven by "SMAP" files that map EGL lines to Java lines, and it's possible the mapping for a statement is not correct.

Also, which build are you using? Nightly? Milestone?

-Justin
Re: How do I debug my preview? [message #760332 is a reply to message #760326] Thu, 01 December 2011 22:29 Go to previous messageGo to next message
Joe Pluta is currently offline Joe PlutaFriend
Messages: 62
Registered: November 2011
Member
Let me see what I can do. I only have about a dozen lines in total, so there's not a lot of room for breakpoints. Smile

I'm on nightly build 0.7.0.v201111270901-1CT-Fiv5_LLLMAxfU_J.

Joe
Re: How do I debug my preview? [message #760336 is a reply to message #760332] Thu, 01 December 2011 22:50 Go to previous message
Joe Pluta is currently offline Joe PlutaFriend
Messages: 62
Registered: November 2011
Member
Okay, I've got it working here. I'll try again on the other workstation tomorrow. It does take a little getting used to; you have to think about the breakpoints in the client and in the server and remember to resume each side appropriately. But I can indeed look at a variable on the host and see that it gets returned to the client. This is rockingly good stuff.
Previous Topic:Preview Pane can't find jt400.jar
Next Topic:How Do I Clear the Internal Browser Cache?
Goto Forum:
  


Current Time: Tue Nov 25 22:31:24 GMT 2014

Powered by FUDForum. Page generated in 0.09884 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software