What are "Loops" that show up in Inspector?

0 favourites
  • 3 posts
From the Asset Store
40 ambient sound loops. A wide selection of looping ambient sounds for different locations.
  • Hello,

    During debugging, one recursive function called itself a bit too much, and a "Uncaught (in promise) InternalError: too much recursion" exception showed in console.

    But the inspector showed something called "Loops" inside the System object. It is like an array with 230 entries, each one contains: "4 / 5".. except the last one: "0 / 5".

    I checked the docs but couldn't find anything.

    It looks like a handy feature, but I can't understand it!

    So, what is "Loops" and what does its content mean?

    Thank you.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I have never seen this "Loops" section. I tried adding a few loops and recursive function calls in a test project and still don't see it in the debug view.

    Could you post a screenshot?

  • I have never seen this "Loops" section. I tried adding a few loops and recursive function calls in a test project and still don't see it in the debug view.

    Could you post a screenshot?

    Me too. It seems to be triggered by the aforementioned exception.

    I managed to replicate the behavior. It needs a recursive function with a loop. Here is the code and the result:

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)