I have read most of the posts that talk about this issue in the forum, and even though I understand the problem, I don’t know of a way of debugging it.
For what is worth, I already solved the problem. I was indeed storing a Variable in some function deep in the code, but I would still be interested in knowing if there’s any technique to look for the possible Variable in the code that causes these kind of errors.