Re:Local Variables as Accidental Breadcrumbs for Faster Debu...
by vanschelven on Thursday October 10, 2024 @05:02PM
(#41803558)
> If you have potentially a problematic computation, put it in a variable and log it out
My point was: what a "potentially problematic" computation is is not always known in advance. A style which is rich in local variables, when combined with a tool that shows actual values for all local variables when unhandled exceptions occur gives you this "for free". I.e. no need to log anything.
My point was: what a "potentially problematic" computation is is not always known in advance. A style which is rich in local variables, when combined with a tool that shows actual values for all local variables when unhandled exceptions occur gives you this "for free". I.e. no need to log anything.