javascript web developer tools for detecting what javascript is being run

Posted on 2014-02-17
Medium Priority
Last Modified: 2014-03-05
I have a large web app which i have inherited and its full of javascript

I'm trying to re-write it to make it more efficient but its a slow process
Is there a developer tool to show you which javascript functions/code are being called

the current example is when I resize the window, I think its running javascript but i cannot tell (its really slow)

but there are other examples i'll need, so I could really do with a tool that shows you exactly what file/line and function name is running as you do stuff (like resize the window)

any thing out there?
Question by:websss
LVL 22

Expert Comment

by:Ivo Stoykov
ID: 39864919
Each current browser has some sort of Development tools usually attached to F12.
The easiest way is to start debugging on windows load and to see what's happening.


Ivo Stoykov
LVL 16

Expert Comment

by:Kiran Paul VJ
ID: 39864965
Try Firebug in Firefox or try Chrome developer tools if you are using Chrome. Don't think about IE.

In your case the best bet would be Firebug debugger and profiler. Check here for more details http://getfirebug.com/javascript

Hope this helps,

Author Comment

ID: 39865041
Have tried ie and chrome Dev toolbars but can't seem to find out where it shows you a live list of what is being called
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

LVL 16

Accepted Solution

Kiran Paul VJ earned 2000 total points
ID: 39865204
You need to add a break point or use profiler. I suggest using break points in your javascript file. Execution will stop at the break point.

Author Comment

ID: 39866508
I know about break points
But that only works for. The code you want to debug

I doesn't work for finding code that's runnung

I tried profiler but had nearly a 100 lines when I resized browser

Is there a way to only show results from. Selected files.?

Expert Comment

ID: 39866874
Take a look to: http://www.w3schools.com/jsref/prop_nav_appversion.asp
and also use navigator.javaEnabled() to check if Java is enabled or not.
LVL 16

Expert Comment

by:Kiran Paul VJ
ID: 39868786
Hi  websss,

You cannot show result from selected files. But you can sort the results with filename, function name in Firebug profile.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question