Introduction to the ADF Debugger

Not that you'll ever need this blog entry - after all there are never bugs in the code that YOU write. But maybe one day one of your peers will ask you for help debugging their ADF application so here we go...

One of the cool features of JDeveloper and ADF is the ADF Debugger - a way to debug the declarative pars of Oracle ADF. The debugger goes beyond your regular Java debugger and shows you in a clear way specific information related to Oracle ADF - things like where are you in the taskflow/region hierarchy, what is in your various scopes, what is the value of a specific EL and much more.

However, from the number of posts on OTN where people are saying "I placed a System.out.println() to see what the value was...", it seems that not many are familiar with the power of the debugger.

So here is a short demo that shows you some aspects of the debugger such as:

  • Setting breakpoints on various ADF artifacts
  • The ADF structure window
  • The ADF Data window
  • The EL Evaluater window

Want to learn more about debugging ADF applications - I highly recommend that you go back in time to 2009 and attend Steve Muench's OOW presentation about ADF debugging. Can't travel in time yet? Then the second best option is to look at his very clear ADF Debugging Slides, which were the inspiration to the above demo.

Comments:

Hi Shay,
I want to create sequence diagrams for my flow using jdeveloper 11.1.
Previous versions of jdeveloper supported option of creating sequence diagram using jdeveloper debugger , but i am unable to create the diagram using 11.1. Can you please suggest me a way to generate the sequence diagrams using 11.1.

Thanks
Tripuresh

Posted by tripuresh on June 26, 2012 at 05:36 AM PDT #

Tripuresh, unfortunately the sequence diagram and debugger integration was removed from the product when we stopped using the OJVM and switched to use the regular JVM instead. You can still manually create sequence diagrams.

Posted by Shay on June 26, 2012 at 10:45 PM PDT #

Ok, Thanks a lot Shay

Posted by Tripuresh on June 26, 2012 at 11:59 PM PDT #

Hi Shay,
Great tutorial. Regarding the sequence diagram feature that Tripuneshi was talking about, is there hope for a return of this feature in the future even with the regular JVM? It's one of the best features that made JDeveloper stand out among the other IDEs. :(

Thanks,
Jan

Posted by Jan on July 06, 2012 at 12:43 PM PDT #

laxmi.19688@gmail.hi.....this is laxmi.... How to use createContact feature in adf Mobile application... I am using jdeveloper 11g 2 R... contacts are not at all getting stored into phones contact book... plz suggest any way to do it... thanks.....

Posted by guest on March 14, 2013 at 07:53 AM PDT #

Guest - Check out the device integration sample for code that shows you interaction with contacts: http://www.oracle.com/technetwork/developer-tools/adf/adf-mobile-samples-1865088.html

Posted by Shay on March 14, 2013 at 03:18 PM PDT #

Hi Shay,

That device integration sample does not demonstrate creating a new contact. I have tried using the createContact method of the DeviceFeatures data control as well as JavaScript (PhoneGap) that already comes with AMX. I have gone through every Oracle document on this and tried them all but still I am unable to create a contact in my Android emulator.

Can you kindly help me in this regard?

Thanks and regards,
Ayon Ghosh

Posted by guest on March 15, 2013 at 07:48 AM PDT #

Hi Shay,

I found what I was missing out on. PhoneGap tries to sync newly added contacts with an online account. Since I had not signed into an account on my emulator my contact was not getting saved.

Is there any way in ADF Mobile to save a contact only to the local phone database and not sync it with an online account?

Thanks and regards,
Ayon Ghosh

Posted by guest on March 19, 2013 at 06:24 PM PDT #

hey shay,
thanks for the insides in ADF, in one of your seminars, you did a housedemo application, was wondering if you could give me the complete schema so that i can follow up.
thanks
nissi

Posted by guest on May 13, 2013 at 01:20 AM PDT #

nissi - you can get an export file of the database for the houses demo here:
https://blogs.oracle.com/shay/resource/mls_new.dmp

Posted by Shay on May 13, 2013 at 11:00 AM PDT #

Hi Shay,

I'd like to read about the ADF Debugger in your post here:
https://blogs.oracle.com/shay/entry/introduction_to_the_adf_debugger

But it doesn't seem like the link to Steve's ADF debugging slides works very well. At least, the site it takes me too is a mess of plain HTML. Can you update this post with an updated link if possible?

Thanks,
Candace

Posted by Candace on November 21, 2013 at 10:42 AM PST #

Seems like the slides got lost somewhere in the Internet when the blogs moved to a new platform. Hopefully my video in this blog will get you through.

Posted by Shay on November 21, 2013 at 11:25 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today