Running a page in the debug mode
This next recipe is going to use the debugger within JDeveloper. This is invaluable when developing and when we want to debug our code, as it is laborious to keep putting debug messages in the code. Using the debugger will make life much easier for us during development.
How to do it...
To run the page in the Debug mode, perform the following:
In JDeveloper, open the
EmpSocietiesCO.java
file if it is not already open.Scroll down the controller to the
processFormRequest
method and click on the left-hand side column to add some break points, as shown in the following screenshot:Now when we run the page, we will select Debug from the pop-up menu instead of Run, as shown in the following screenshot:
When the page opens as shown in the following screenshot, click on + icon in the Add Society column:
At this point, go back to JDeveloper and we can see that the debugger has stopped at our first break point. The line the debugger has stopped on is highlighted in blue...