What's best way to track bug that freezes game?

(Is this the right forum to ask about debugging issues? or is there a better one?)

Working on a very big game…

and game randomly FREEZES (have to open task manager and end task)

What’s the best way to solve these “game freeze” type bugs?

if its freezing instead of crashing with error message does that mean its a memory issue?

Right now I am trying to put in as many log comments into every function and checking the log after ending task to see the last function the game got to… (but theres soooooo many functions without log info too)

I am guessing packaging and compiling with** debug **info is useless since there’s no crash with error message (is this correct?)