doo icon indicating copy to clipboard operation
doo copied to clipboard

Source maps for stack traces?

Open danielcompton opened this issue 10 years ago • 2 comments

Is it possible to get stack traces for errors from Karma?

At the moment they look like this:

Chrome 46.0.2490 (Mac OS X 10.11.0) bigco.base.util-test fail FAILED
    Fail (fail) (cljs/test.js:417:14)
    Expected (= 1 2)
    Actual: (not (= 1 2))

I'm not sure if this is related or not, but when I open the Karma Debug page, I get a bunch of warnings in the doo terminal about 404 for source map files, e.g.:

19 10 2015 08:24:30.989:WARN [web-server]: 404: /base/out/cljs_time/format.js.map

danielcompton avatar Oct 18 '15 19:10 danielcompton

I'm pretty sure I can solve the 404 warnings. I don't know about getting source-mapped stack traces but it is definitely in the road map so I'll get back when I have some time to investigate/implement this.

I suspect it is doable in Karma but harder in the other runners (specially Phantom/Slimer).

bensu avatar Oct 18 '15 20:10 bensu

No problem. Thanks for your work on this, it's really great.

danielcompton avatar Oct 18 '15 21:10 danielcompton