"encode_variant: Potential inifite recursion detected. Bailing." lags debugger

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ox0zOwra

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.

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.

For my own dialogue system, I am also using JSON to store the dialogues, although I handle events and dialogue choices differently.