stacktrace-gps
stacktrace-gps copied to clipboard
Turns partial code location into precise code location
## Expected Behavior The source map should be used to locate the original source files and locations ## Current Behavior If original source files cannot be obtained, an error is...
Attempting to log and debug live errors on a site generated by create-react-app. The gps object created with new StackTraceGPS() looks to be fine (sourceCache and sourceMapConsumerCache promises are fulfilled)....
I use StackTraceGPS. pinpoint to get the un-uglified stack but got error when stacktracegps starts to find my vendor code (REACT) from webpack.  Error: Error: HTTP status: 0 retrieving...
The problem: often times file names in the source map are artificial, e.g. `webpack://[name]/packages/client/src/layout/ModalPageLayout.tsx`. If the source map contains only line/column numbers and not the source code per se, then...
## Description A new method `getContext` is implemented. The method gets the surrounding source code for where exception occurs. Similar to [TraceKit context](https://github.com/csnover/TraceKit/blob/master/tracekit.d.ts#L7), but much more clever and flexible. I've...
In angular9, I am getting the following error after installing StackTrace-Gps as a separate package to get unminifed location. Uncaught Error: define cannot be used indirect at push../node_modules/webpack/buildin/amd-define.js.module.exports (amd-define.js:2) at...
If `_parseJson` (and internal `JSON.parse`) throws an error, it will not be passed to `reject`, so outer `getMappedLocation` (and `StackTrace.fromError` from `stacktrace-js`) will never resolve/reject. https://github.com/stacktracejs/stacktrace-gps/blob/v3.0.4/stacktrace-gps.js#L240-L251 ```js var sourceMapConsumerPromise =...
Given an app hosted on `example.com` referencing a javascript file `script.js` hosted on `cdn.example.com`. The html file on `example.com` loads `cdn.example.com/script.js`. An error is thrown, and stacktrace-gps is used to...
## Expected Behavior The "fn_name() {" regex /\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/ should match code like "fn_name() { stuff" ## Current Behavior The regex matches this code if (a) { foo(); } else if...
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...