Prashant is the Oz behind Chronon. Inspired and frustrated by years of breakpoint guesswork in the current debuggers and fumbling with printin() statements and logging frameworks, Prashant set out to find a different way to debug programs. Chronon is the result of his efforts. Prashant has posted 22 posts at DZone. You can read more from them at their website. View Full User Profile

Verifying Lazy Loading behavior of code

04.08.2011
| 4367 views |
  • submit to reddit

A lot of times I write code that is supposed to do lazy loading. However it is tough to actually verify if in fact the lazy loading is taking place or did my code just load the entire set of data instead. With traditional debugging tools it would take a bunch of println() statements, a new build, and probably the entire lunch hour to verify the lazy loading behavior.

Note that in this case I am not 'debugging' in the traditional sense. I just want to verify whether my code is behaving at runtime how I want it to.

With Chronon, its instant. Just run your code and look at how it behaved in the time travelling debugger. No println() statements, new builds or anything special required.

We have made a video demonstrating this for a sample tree viewer with a lazy content provider.

You can also watch more videos demonstrating the use of Chronon to solve real world issues.

 

From http://eblog.chrononsystems.com/verifying-lazy-loading-behavior-of-code

Published at DZone with permission of its author, Prashant Deva.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)