4 ms·
> var a = function(){throw Error('err')} undefined > try{a()}catch(err){err.stack} "Error: err at Error (native) at a (<anonymous>:2:26) at <anonymo
by thedufer 13y ago
> var a = function(){throw Error('err')}
undefined
> try{a()}catch(err){err.stack}
"Error: err
at Error (native)
at a (<anonymous>:2:26)
at <anonymous>:2:5
at Object.InjectedScript._evaluateOn (<anonymous>:641:39)
at Object.InjectedScript._evaluateAndWrap (<anonymous>:580:52)
at Object.InjectedScript.evaluate (<anonymous>:495:21)"
The "at a" is what we're looking for. I develop largely in Chrome; its been doing this for months, at least.
It also works in IE11 (the only version I have readily available), Firefox, and Safari.