Open Bug 882825 (tagStack) Opened 11 years ago Updated 2 years ago

Implement console.tagStack

Categories

(DevTools :: General, enhancement, P3)

x86
macOS
enhancement

Tracking

(Not tracked)

People

(Reporter: fitzgen, Unassigned)

References

(Blocks 1 open bug)

Details

As mentioned in this thread: https://groups.google.com/forum/?fromgroups#!searchin/mozilla.dev.developer-tools/ember/mozilla.dev.developer-tools/UaHRe6uUW0E/rvM-qIcY2nIJ function foo() { setTimeout(console.tagStack(function bar() { throw Error(); }, 0); } foo(); Should have a stack of |foo, bar| in our developer tools.
(In reply to Nick Fitzgerald [:fitzgen] from comment #0) > As mentioned in this thread: > https://groups.google.com/forum/?fromgroups#!searchin/mozilla.dev.developer- > tools/ember/mozilla.dev.developer-tools/UaHRe6uUW0E/rvM-qIcY2nIJ > > function foo() { > setTimeout(console.tagStack(function bar() { > throw Error(); > }, 0); Missing closing paren between '}' and ',' ? > } > foo(); I imagine console.tagStack is |x => x| when devtools are closed?
(In reply to David Bruant from comment #1) > (In reply to Nick Fitzgerald [:fitzgen] from comment #0) > > As mentioned in this thread: > > https://groups.google.com/forum/?fromgroups#!searchin/mozilla.dev.developer- > > tools/ember/mozilla.dev.developer-tools/UaHRe6uUW0E/rvM-qIcY2nIJ > > > > function foo() { > > setTimeout(console.tagStack(function bar() { > > throw Error(); > > }, 0); > Missing closing paren between '}' and ',' ? Yeah, thanks. > > > } > > foo(); > > I imagine console.tagStack is |x => x| when devtools are closed? It would be nice if we could record this all the time, so that when you open the console for the first time and get all the queued up messages/errors, they have their stacks tagged.
Blocks: async-stacks
No longer depends on: async-stacks
Product: Firefox → DevTools
Type: defect → enhancement
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.