Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat #218 better stack trace in Firebug and Safari devtools #384

Closed
wants to merge 1 commit into from

Conversation

jakub-g
Copy link
Collaborator

@jakub-g jakub-g commented Feb 15, 2013

This adds support for Function.displayName to have better stack
traces in debugger in Firebug and Safari dev tools for the functions
in $prototype of classes loaded via Aria.classDefinition.

Chrome and IE9+ do not support displayName but they have a good
built-in inferring of names of anonymous functions.

IE8- do not support displayName nor infer the name by itself.

Close #218.

This adds support for `Function.displayName` to have better stack
traces in debugger in Firebug and Safari dev tools for the functions
in `$prototype` of classes loaded via `Aria.classDefinition`.

Chrome and IE9+ do not support `displayName` but they have a good
built-in inferring of names of anonymous functions.

IE8- do not support `displayName` nor infer the name by itself.

Close ariatemplates#218. Close ariatemplates#384.
@jakub-g
Copy link
Collaborator Author

jakub-g commented Feb 15, 2013

See #218 for preview.

@captainbrosset
Copy link
Contributor

Great feature, will help a lot, especially knowing that stack traces can sometimes be pretty huge with AT!

@olaf-k
Copy link

olaf-k commented Feb 18, 2013

+1, this makes debugging much more efficient, excellent initiative Jakub!

@jakub-g
Copy link
Collaborator Author

jakub-g commented Feb 19, 2013

BTW I found a great article on named function expressions while investigating this (after Fabio's comments on global variables in IE). The whole article is nice, but "JScript bugs" section is insane:

http://kangax.github.com/nfe/#jscript-bugs

It's a bit old but most of the things there still hold.

@piuccio piuccio closed this in 02bde50 Feb 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve debugging in Firebug: name anonymous functions
4 participants