occ / TraceKit

Attempts to create stack traces for unhandled JavaScript exceptions in all major browsers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

More lines of context captured

mattrobenolt opened this issue · comments

Right now, 4 lines of context are being captured. 2 lines before, the offending line, then one line after.

Think we can configure to say, "Grab 11 lines of context"? I'll submit a pull request if this sounds reasonable for you.

Sounds good to me. As always, PRs are welcome :)

yeah that would be pretty cool to be able to say something like:

TraceKit.surroundingLinesToCollect = 11

Could name it: TraceKit.contextLines or TraceKit.numContextLines but the word 'context' is slightly confusing in the first place. surroundingLinesToCollect is 100% clear by itself.