3 ms·
Only if you already know the value(s) being watched. If you know that you can also add trace level debug statements on those items in the code.
by mjevans 4y ago
Only if you already know the value(s) being watched. If you know that you can also add trace level debug statements on those items in the code.
- vkou 4y agoYou can, but it's usually easier to set a data breakpoint than to find every place where the data is modified, add sufficiently verbose logging statements there + upstream of there, rebuild, and search through logs.
- dkjaudyeqooe 4y agoWhen you have logs you can see where the anomalies are and trace them back to the source. Things are wrong all over the place, but where did it start? Often I'll identify a wrong value, or bad object, and then search for that through the logs to see what is touching it or where it first appeared. If it's interacting with another value I'll search for that, maybe in a longer chain. Eventually you figure out where the interaction is going wrong, and more often than not it's a subtle error that looks right but isn't. You make a small change (the classic is an off-by-one error) and suddenly everything works perfectly.