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.