Sunday, March 1, 2015

ADF how to: debugging ADF applications

This message has been inspired by the question from ADF exam:
You are debugging an application module method that seems to be causing an error
when the argument value is anything but "2". How could you most efficiently debug this issue?

A. Set a breakpoint on the first line of the method implementation and set the
breakpoint property to break only for threads named oracie.jbo.Exception.
B. Set a breakpoint on the first line of the method implementation and set the
breakpoint pass count property to 2.
C. Set a breakpoint on the first line of the method implementation and set the
breakpoint condition to arg ! = 2.
D. Set a breakpoint on the method declaration (where the argument is defined) and
step through the breakpoint at execution to determine the argument value.
E. Set a breakpoint on the method declaration (where the argument is defined) and
set the condition to arg == 2.

To customize breakpoint execution right click on code editor left margin and select Edit Breakpoint:

 

Next, when dialog appears, go to Conditions tab, and insert desired condition:


On our case valid answer: C

No comments:

Post a Comment