ADF Debugging: Debug Java class
In this section, we walk through on how to debug a Java class in an ADF
Open JDeveloper >> Select Application Servers from Windows
Right click on the Integrated WebLogic Server & Select Debug Server Instance
Note: If it is the first time the WebLogic server is starting, then it prompt for the below details. Input password and click Ok
I have a button in a JSF page. On clicking of the button will invoke the method r1_regionNavigationListener() in a bean.
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
Once the server is running, Right click on the JSF page and select Debug
The page loads on the screen. Mouse click on the button
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.
More debugger options are present under the Windows >> Debugger menu
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 🙂
Latest posts by Govind
- JSF Login Logout Form Authentication Example - October 16, 2017
- How to Bookmark URL in JSF using GET method and ViewParam – example - October 14, 2017
- JSF Dynamic Navigation and how to use wildcard in navigation - October 12, 2017