221 total views, 9 views today

ADF Debugging: Debug Java class

In this section, we walk through on how to debug a Java class in an ADF

IDE Used:

JDeveloper 12C

Steps:

Open JDeveloper >> Select Application Servers from Windows

061716_0454_DebugJavaco1 ADF Debugging: Debug Java class

Right click on the Integrated WebLogic Server & Select Debug Server Instance

061716_0454_DebugJavaco2 ADF Debugging: Debug Java class

Note: If it is the first time the WebLogic server is starting, then it prompt for the below details. Input password and click Ok

061716_0454_DebugJavaco3 ADF Debugging: Debug Java class

I have a button in a JSF page. On clicking of the button will invoke the method r1_regionNavigationListener() in a bean.

061716_0454_DebugJavaco4 ADF Debugging: Debug Java class

Below is the bean method. I set a break point by a mouse click on the left side of the line as shown below. A red color dot denotes the breakpoint. So, whenever the button is pressed, it calls the method and the execution halts at the breakpoint

061716_0454_DebugJavaco5 ADF Debugging: Debug Java class

Once the server is running, Right click on the JSF page and select Debug

061716_0454_DebugJavaco6 ADF Debugging: Debug Java class

The page loads on the screen. Mouse click on the button

061716_0454_DebugJavaco7 ADF Debugging: Debug Java class

The debugger executes the method and halt at the breakpoint. It is shown as a blue line below. We can use the F7, F8, and F9 keys to traverse further or you can use the icon pointed in the top toolbar.

Use the Data tab to see the variable values, Breakpoint tab for the list of breakpoints, marked on the bottom panel.

061716_0454_DebugJavaco8 ADF Debugging: Debug Java class

More debugger options are present under the Windows >> Debugger menu

061716_0454_DebugJavaco9 ADF Debugging: Debug Java class

govindan ADF Debugging: Debug Java class
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply šŸ™‚
govindan ADF Debugging: Debug Java class
Connect me
By | 2016-12-28T17:20:31+00:00 June 17th, 2016|Categories: ADF|Tags: , , , |0 Comments
Like us on Facebook.
Connect!