Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Stack trace does not show column when exception occurs. #12289

Closed
fmmontas opened this issue Jun 4, 2014 · 17 comments
Closed

Stack trace does not show column when exception occurs. #12289

fmmontas opened this issue Jun 4, 2014 · 17 comments

Comments

@fmmontas
Copy link

fmmontas commented Jun 4, 2014

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.

@NickClark
Copy link

👍 Running tests in Karma with source maps, and I really like that PhantomJS gives better error messages for failures (TypeError: 'undefined' is not a function (evaluating 'calc.add()') vs Chrome's plain TypeError: undefined is not a function), but unfortunately, no column number breaks Karma's ability to use source maps

@samu
Copy link

samu commented Dec 7, 2014

👍

@jtomaszewski
Copy link

+1 - currently I need to use Chrome in Karma, because sourcemaps don't work in PhantomJS :(

@leonardfactory
Copy link

👍

4 similar comments
@dtryon
Copy link

dtryon commented Feb 26, 2015

+1

@alexbuijs
Copy link

+1

@andras-tim
Copy link

+1

@decates
Copy link

decates commented Sep 15, 2015

+1

@supersonicclay
Copy link

+1 this is essential for running unit tests with Karma and PhantomJS

@danieljsinclair
Copy link

+1

@axelpale
Copy link

axelpale commented Oct 1, 2015

+1

1 similar comment
@matthauck
Copy link

👍

@matthauck
Copy link

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!

@WolfgangKluge
Copy link

Hmm, I've still the same problem with phantomjs 2.1.1 (phantomjs-prebuilt 2.1.14) on windows.

I see phantomjs://code/test.js:4 in global code when I execute the script

setTimeout(function () {
    phantom.exit();
}, 0);
throw '';

Still no column numbers (and therefore no chance to get source maps to work correctly)..

@JoshSchreuder
Copy link

Hmm, I've still the same problem with phantomjs 2.1.1 (phantomjs-prebuilt 2.1.14) on windows.

Same here. If I run the tests via Karma in Chrome / Firefox the stacktrace uses sourcemaps correctly.

@dreadwail
Copy link

@vitallium I don't think this is fixed, so any chance of re-opening it?

@rmartins90
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests