Hey @barbrian0723 !.
If code is written on C++ the correct way to debug it is by using breakpoints to follow the execution flow. Here are some suggestions:
- Try to find the point where data gets corrupted and then use a breakpoint to see what is happening.
- Sometimes you can use a data breakpoint wich pauses the execution when a variable changes his value, but sometimes its not usefull if your value is changing frequently.
Feel free to share the code that is causing problems so i can help you with the bug.