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

Link to file:row on firebug #21

Open
ZeeD opened this issue Aug 14, 2012 · 2 comments
Open

Link to file:row on firebug #21

ZeeD opened this issue Aug 14, 2012 · 2 comments
Labels

Comments

@ZeeD
Copy link

ZeeD commented Aug 14, 2012

Hi

I don't know how it does, but if you use firebug and do a

console.log(function_name); 

you can see a clickable function definition (there isn't the body). If you click you go directly on the script tab at the exact file/row.

It would be assome if - when you use VE in conjunction with firebug - can do the same thing

@DataTables
Copy link
Collaborator

VisualEvent can do that in Webkit based browsers, where it is possible to determine where a particular function comes from. I've yet to find a way to do it in Firefox. In Webkit browsers VisualEvent will show the file name and line number for the function, although not a clickable link. That's a nice idea for an enhancement.

@lingo
Copy link
Contributor

lingo commented Oct 26, 2016

In Firefox, I can see that finding the line would be tricky, but perhaps by normalizing the function and the source files you could at least find the file where it originates.

Something like this applied both to source and to function (also removing the prototype as for webkit) seems to work to find origin file (if not line number).

function normalize(s) { return s.replace(/\s+/g, ' ').replace(/\n+/g, ' '); };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants