Hi. I apologize in advance if this is in the wrong forum.
I am totally new to debugging my code, and the tools available. Previously, all I did was manually trace my code. However, doing that with my current problem would take way too long.
I have an object (obj A) with an attribute. I check the value of the attribute, before I add the object "into" another object (obj B). The value is correct (expected). Then I do a buncha stuff. Then, I print the contents of obj B to a stream. It is here where I notice the value of the attribute of obj A is incorrect, and has changed. So I need a way to find out where it has changed, obviously it is somewhere after I add obj A into obj B, and before I dump the contents of obj B into a stream, but tracing it is a nightmare.
What is an easy way to find out exactly where/when the value of that attribute changed? Are there any good debugging tutorials for beginners?
Thank you for any help or advice!
I am totally new to debugging my code, and the tools available. Previously, all I did was manually trace my code. However, doing that with my current problem would take way too long.
I have an object (obj A) with an attribute. I check the value of the attribute, before I add the object "into" another object (obj B). The value is correct (expected). Then I do a buncha stuff. Then, I print the contents of obj B to a stream. It is here where I notice the value of the attribute of obj A is incorrect, and has changed. So I need a way to find out where it has changed, obviously it is somewhere after I add obj A into obj B, and before I dump the contents of obj B into a stream, but tracing it is a nightmare.
What is an easy way to find out exactly where/when the value of that attribute changed? Are there any good debugging tutorials for beginners?
Thank you for any help or advice!
Comment