Debug and Profile JavaScripts using Venkman – JavaScript debugger and profile tool.
If you are a web developer who writes JavaScript functions for your website you can take advantage of JavaScript debugger tools.If you are familiar with any IDE then debugging will be an easy task for you. Venkman from Mozilla is such a tool that is really useful in debugging and profiling your JavaScript files.
Even if you don’t write any JavaScript you can still use the JavaScript debugger and Profile tool to verify the problems with your JavaScript files.The Profiler can help you in validating the efficiency of the JavaScript functions by analyzing the execution data collected by the profiler.
Related:FireBug- A Firefox extension to Inspect HTML CSS and modify style in real-time.
Venkman is the code name for Mozilla’s JavaScript Debugger. Venkman aims to provide a powerful JavaScript debugging environment for Mozilla based browsers.
For Firefox you can download the plug-in from here.
Using Venkman
You can start Venkman JavaScript Debugger from the Tools->Web Development->JavaScript Debugger menu or by typing ‘x-jsd:debugger‘ in the URL bar. This will launch Venkman browser front end.There is also a command line option available.
Setting breakpoints
You can set a break point by locating the line you are interested in and click once in the left margin of the Source Code view. This will put a breakpoints at that point.
See the screen-shot below.
If the breakpoint appear as a solid red stop sign indicates that the breakpoint has been set.For future breakpoints it will display as ‘F’.A Future Breakpoint means that Venkman was unable to set a hard breakpoint now, but if the file is loaded later, and it has executable code at the selected line number, Venkman will automaticaly set a hard breakpoint.
Uisng breakpoints you can debug the JavaScript during the its load and can verify the local variable values.
Another interesting feature is the Profiler.Profile can be used to measure execution times for your scripts. You can enable profiler by clicking the profile button in the toolbar.If the Profiler is enabled Venkman will collect call count, maximum call duration, minimum call duration, and total call duration for every function called.This is a very useful tool that will help you to find out the execution time of your JavaScript.You can use this to find out which function is less efficient9 taking more time to execute) and so on.
To learn more about Venkman visit here.
To know more about Venkman project read it here.
-
Mahua
-
binugeorge
-
-
Geek
-
binugeorge
-
-
Lava
Join Globinch on Social Media
Follow Globinch
Popular Posts
- Turn your Windows 7 Computer Into a Personal Wi-Fi Hotspot 20 comment(s) | 26,457 view(s)
- Search Engines for File Sharing Sites : Rapidshare Search, Megaupload and More 2 comment(s) | 18,455 view(s)
- Google Translate Now supports Bengali, Gujarati, Kannada, Tamil and Telugu 2 comment(s) | 17,344 view(s)
- Best PDF OCR Tools to Convert Scanned images to Text / Word Documents 4 comment(s) | 13,612 view(s)
- Google Top Searches Today – Hot Google Search Words today 8 comment(s) | 13,496 view(s)
- Globinch Search 0 comment(s) | 10,385 view(s)
- Access Blocked sites, Unblock Restricted Websites 16 comment(s) | 9,453 view(s)
- Password Revealer – How To Reveal- Show Password Behind Asterisks? 1 comment(s) | 8,517 view(s)
- Play Angry Birds Game Free and Offline in Chrome Browser 1 comment(s) | 8,243 view(s)
- Free Online OCR Software to Convert Images Into Searchable PDF, Doc, HTML or Text 2 comment(s) | 8,082 view(s)
Recent Articles
- How to Use Wi-Fi the Secure Way
- 5 Apps to Boost Android Performance
- Building a Smarter Site Using a WordPress Platform
- Samsung Galaxy S IV Smartphone :Summary of All the Radical Innovations
- 5 Killer Tips to Increase Traffic to Your Blog
- Domain Parking to Make Genuine Money Online
- SEO Is Not Dead, But You Need to Upgrade The Process
- A Complete SEO Guide on Using Social Media for Better SERPs
- When Should You Use Geotargeting or Setting Geographic Target in Google Webmaster Tools?
- How To Optimize Your Google+ Page And Profile For Search Engines








