Is there something like a backtrace to indicate which path a variable has reached to its current value? : <p>I have a source like this</p>

<pre><code> //file1.cpp
 int var_1=getDB(" Table_name","column_name");
 ...
 //file2.cpp
 int var2=func2(var_1);
 ...
 //filen.cpp
 int var_n=funcn(var_n_1);
</code></pre>

<p>In debugging, I first diagnose var_n error message type, but the goal is to modify the table, is there an easy way like backtrace to get to the source of the error, namely the table and field name?</p>
