Solved

javascript web developer tools for detecting what javascript is being run

Posted on 2014-02-17
7
202 Views
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?
0
Comment
Question by:websss
7 Comments
 
LVL 22

Expert Comment

by:Ivo Stoykov
Comment Utility
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.

HTH

Ivo Stoykov
0
 
LVL 16

Expert Comment

by:kiranvj
Comment Utility
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,
Kiranvj
0
 

Author Comment

by:websss
Comment Utility
Thanks,  
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
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 16

Accepted Solution

by:
kiranvj earned 500 total points
Comment Utility
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.
0
 

Author Comment

by:websss
Comment Utility
Thanks
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.?
0
 
LVL 9

Expert Comment

by:Sar1973
Comment Utility
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.
0
 
LVL 16

Expert Comment

by:kiranvj
Comment Utility
Hi  websss,

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Python On Mouseover Save URL/Link 4 27
C3-->D3 Line Chart 4 16
Apostophes in PHP generated form 6 11
onOpen 14 27
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now