Debugging the application
JDeveloper 11gR2 supports the debugging feature, which will allow a developer to debug the application code to fix an issue or isolate a problem in the production environment. Some of the common debugging practices are discussed in this section.
Debugging practices
Some of the debugging practices are as follows:
Resolving compilation errors: This is very simple to resolve as part of the issues will be related to the coding issue. Compilation issues can occur during Java compilation, XML parsing, XML validations, and so on.
Print values: The basic debugging technique that is known to any Java developer is to print the values using
System.out.println
statements in the console to verify if the program behaves as expected. This, however, is not recommended and aLogger
API is used instead. The ADF recommendation is to use theADFLogger
API, which is configurable to print the values in the logfile.Breakpoints: Another way to debug is to insert a breakpoint next to the...