Open Bug 910619 Opened 11 years ago Updated 2 years ago

Include function parameter values in stack traces and web console

Categories

(DevTools :: Debugger, enhancement, P5)

enhancement

Tracking

(Not tracked)

People

(Reporter: miker, Unassigned)

References

(Blocks 1 open bug)

Details

There is a DevTools addon that allows the file, line, function name and argument values at the time an error is logged to the web console. http://davidbruant.github.io/usefulStackTrace/ It would also be useful to see this information in the call stack.
Priority: -- → P3
My add-on is received with enthusiasm by devs usually. It's also a differentiating factor. The way I do it today is ridiculously inefficient: The tab is constantly being debugged (with the perf issues we know), I add an onEnterFrame callback to every single frame (I could remove this hack now that we can know ahead of time if an error will be uncaught, yay!). The perf hit is acceptable as an addon and because the users have to opt-in, but it wouldn't be acceptable by default. This can all change with bug 716647. If this bug gets fixed, then it's possible to wait for an error to be thrown, start debugging at this point (and only at this point!), read all the needed information including the value of the arguments (this is somewhat false if the values of argument variables have been changed before the error, but works for the 90% case) and display both the stack trace and the argument values (maybe even make post-mortem closure inspection possible?). Anyway, setting the dependency and maybe revisit when the dependency is fixed.
Depends on: 716647
Product: Firefox → DevTools
Blocks: dbg-frontend
Type: defect → enhancement
Priority: P3 → P5
Blocks: 1565711
Blocks: 1565713
No longer blocks: 1565711
No longer blocks: 1565713
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.