-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Stack trace does not show column when exception occurs. #12289
Comments
👍 Running tests in Karma with source maps, and I really like that PhantomJS gives better error messages for failures ( |
👍 |
+1 - currently I need to use Chrome in Karma, because sourcemaps don't work in PhantomJS :( |
👍 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
+1 this is essential for running unit tests with Karma and PhantomJS |
+1 |
+1 |
1 similar comment
👍 |
Hmm. Looks like this may not be a phantomjs issue anymore. Just updated to phantomjs-prebuilt 2.1.5, and column numbers are now present! |
Hmm, I've still the same problem with phantomjs 2.1.1 (phantomjs-prebuilt 2.1.14) on windows. I see setTimeout(function () {
phantom.exit();
}, 0);
throw ''; Still no column numbers (and therefore no chance to get source maps to work correctly).. |
Same here. If I run the tests via Karma in Chrome / Firefox the stacktrace uses sourcemaps correctly. |
@vitallium I don't think this is fixed, so any chance of re-opening it? |
+1 |
Whenever a javascript exception occurs the stack trace only contains the line number and not the column, ex. 'path/to/file/someFile.js:56' where 56 is the line number. Without the column number source maps will not currently work. Given an exception occurs 'path/to/file/someFile.js:56:11' where line number is 56 and column number is 11 seems like the common format.
The text was updated successfully, but these errors were encountered: