how to debug array corrupting

hi

struggling with an array that corrupts at a point
at some point an array corrupts and loses all its values
beforehand it reads fine : i have placed a breakpoint for debugging because an array value turns bad, and i want to see why and when
as said, initially the array reads fine and has valid values (its an array of structures)
then, at some point the entire array corrupts and all values in the array become garbage, not just a single entry
i have search all references of the array across all blueprints to see where the array potentially is changed but i dont see anything out of the ordinary

is there another way to debug this case

thanks

tried to use a watch point on the variable but in the end had to take the code apart to locate the point of departure

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.