stacktrace-gps icon indicating copy to clipboard operation
stacktrace-gps copied to clipboard

StackTraceGPS.pinpoint returns Error "Found a source and line, but no column"

Open RupprechJo opened this issue 8 years ago • 0 comments

I concatenate and minimize my JavaScript files with UglifyJS. I want to use StackTraceGPS to get the original file names and line numbers.

Expected Behavior

If I use the attached v2a.min.js and v2a.min.js.map (which includes the StackTraceJS distribution) and I want to get the information for that StackFrame:

gps.pinpoint({fileName:"http://localhost:8280/testmarvin/js/v2a.min.js", lineNumber:2, columnNumber:10174}).then(res => console.log(res), err=> console.error(err));

I expect to get the correct filename and line number

Current Behavior

The pinpoint method returns the Error message "Found a source and line, but no column". I did not find any information to that error, I don't even find it in your source files... So what is wrong?

Steps to Reproduce (for bugs)

Use the attached minified JavaScript and SourceMap and call var gps = new StackTraceGPS(); gps.pinpoint({fileName:"http://localhost:8280/testmarvin/js/v2a.min.js", lineNumber:2, columnNumber:10174}).then(res => console.log(res), err=> console.error(err));

Context

This bug prevents me from using StackTraceGPS at all, because it does not give me any useful information. And it would be exactly what I need, because the stacktraces of the minified JavaScript files say nothing

Your Environment

  • stacktrace.js version: 1.3.0
  • Browser Name and version: Firefox 52
  • Operating System and version (desktop or mobile): Mac OS X 10.10.5
  • Link to your project: It is not OpenSource, sorry

Possible Solution


Archiv.zip

RupprechJo avatar Mar 24 '17 16:03 RupprechJo