HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

How to debug an infinite recursion - Comments

Login / Search

 [ Join | More ]

How to debug an infinite recursion

Posted 23 November 2011, 3:34 PM
This is a little post for programmers. I'm sharing this because I think it's an incredibly useful tip that I use regularly, but I've never seen anyone else do it before.

One of the most difficult problems to debug is some kind of 'infinite recursion' in code. It's easy for conditions to accidentally be created for a cyclic dependency, which makes a pattern of code repeat itself to infinity. i.e. A requires B which requires C which requires…

Read more

very nice tip indeed!

Thanks for sharing.  :thumbs:

There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: