Tracing Javascript warning from library
<p>I have a script that uses Raphaël, a Javascript library to work with SVGs. In my code I am doing something wrong because of that I am getting a warning from the library.</p>

<p>That warning comes from some line in the library. It would be great to trace the stack from when that warning occur to know where in my code is the line that causes the warning.</p>

<p>Using console.trace doesn't help, so I ask, is there a way to trace a warning that comes from a Javascript Library?</p>

<p>(PS: I looked into modifying the library to print stack traces, but that is just too hard.)</p>

<p>Edit:</p>

<p>The warning itself is:</p>

<p>"Unexpected value NaN parsing width attribute."</p>

<p>I would like to trace the error to know where in my code am I sending a NaN to a Raphael function.</p>
