I'm trying to debug my own game, and for some reason, every time I try to move to the next statement, the debugger goes ballistic and I get an avalanche of errors that look something like this, ~500 times.
https://imgur.com/a/i7bHTiH
Here's the weird part: the game does not choke at all unless I specifically use the debugger. This makes it irritating to attempt to fix even the simplest bugs. Earlier, I was following this tutorial. Admittedly, it's outdated, but after encountering the exact same bug upon modifying the source code linked in the video for the new version of the engine, I decided to make my own dialogue system from scratch.
https://www.youtube.com/watch?v=aVutIoCGAfE
For my own dialogue system, I am also using JSON to store the dialogues, although I handle events and dialogue choices differently.