Debugging in loops

0 favourites
  • 5 posts
From the Asset Store
For Adventure, Action, Heroes, Sci-fi and Action-RPG games.
  • There are a lot of things that I love about Construct2. The editor has the best blend of graphical scripting / programming concept representations that I've seen so far. But there is also a deal breaker for me. Not being able to use the debugger inside of loops makes certain types of development tasks very difficult for me. I wanted to know if this is going to change in the future? Will Construct 2 or 3 ever fix this? Besides logging, is there any other method that I would want to use to get around this limitation?

  • I add a list object.

    Then 'Add item' for the things that i want to examine.

    I have seen others use 'log' in the browser object.

  • The problem is similar to debugging triggers, and I recently explained why that is hard: https://www.scirra.com/forum/debug-idea-request_p1071997?#p1071997

    Basically the architecture of browsers makes this pretty difficult.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't know very much about how this works, but it seems that the debugger in the web dev f12 tools is able to show values inside of for loops. I think I read that this is just a web app in chrome. To me this seems to mean, nothing more than html, CSS and Javascript (which is probably an oversimplification). I wonder how the browser developer's are accomplishing this?

  • I use browser object log functionality.

    It gets me the values in the loop through the console without much hassle.

    F12 open up the console easily and instantly. This functionality can be removed instantly for export by inserting a blank event for the specific keyboard keypress.

    If you want to put more effort to it, there's nothing stopping you for creating a dictionary for only debugging and adding its value in your problematic areas and loop.

    Then simply allow a large size text/spritefont object inside the game to keep appending any results from the dictionary values you get inside the game.

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