Possible to capture entire call stack from a jQuery call?
<p>Admittedly, a strange question....but is it <strong>possible</strong> to somehow capture an entire javascript call stack from jQuery?  For example, let's say on page ready, I do a for each on every row in a table, and for a certain cell in each row, I want to change the row color based on this cell exceeding a certain value.</p>

<p>So, I'm wondering if it is possible to write this in jQuery, execute it, and somehow end up with an entire stack trace of the actual javascript that was executed?</p>

<h2>Update #1</h2>

<p>Hmmm....this looks very similar to what I am hoping for (looks like it must be technically possible):<br>
<a href="http://getfirebug.com/logging" rel="nofollow">http://getfirebug.com/logging</a>  </p>

<p><strong>Stack traces</strong><br>
<em>Just call console.trace() and Firebug will write a very informative stack trace to the console. Not only will it tell you which functions are on the stack, but it will include the value of each argument that was passed to each function. You can click the functions or objects to inspect them further.</em></p>

<h2>Update #2</h2>

<p>Ah of course, the question is: why?<br>
How about this: javascript is allowed at my company, but jQuery is not.</p>

<h2>Conclusion</h2>

<p><a href="http://getfirebug.com/logging" rel="nofollow">http://getfirebug.com/logging</a><br>
or<br>
<a href="http://blog.johnmckerrell.com/javascript-call-tracer/" rel="nofollow">http://blog.johnmckerrell.com/javascript-call-tracer/</a></p>
