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.
Sign up or join Globinch on Social Media
Stay Connected
Follow globinch
Popular Posts
- Search Engines for File Sharing Sites : Rapidshare Search, Megaupload and More 6 comment(s) | 16258 view(s)
- Turn your Windows 7 Computer Into a Personal Wi-Fi Hotspot 15 comment(s) | 16117 view(s)
- Google Translate Now supports Bengali, Gujarati, Kannada, Tamil and Telugu 2 comment(s) | 15714 view(s)
- Google Top Searches Today – Hot Google Search Words today 12 comment(s) | 11559 view(s)
- Best PDF OCR Tools to Convert Scanned images to Text / Word Documents 20 comment(s) | 10154 view(s)
- Globinch Search 0 comment(s) | 8401 view(s)
- Access Blocked sites, Unblock Restricted Websites 15 comment(s) | 7310 view(s)
- Free Online OCR Software to Convert Images Into Searchable PDF, Doc, HTML or Text 3 comment(s) | 7238 view(s)
- Password Revealer – How To Reveal- Show Password Behind Asterisks? 7 comment(s) | 7180 view(s)
- Play Angry Birds Game Free and Offline in Chrome Browser 1 comment(s) | 7049 view(s)
Recent Articles
- Best Free Tools to Enlarge Images without Losing Quality
- How to Track Your Gmail Email and Schedule Gmail Mail Free?
- Google Webmaster Unnatural Links Detected Warning & Penalty
- How to Use Trial Software Version Forever Without Expire
- How to Use Folder as Drive or Convert Folder to Drive?
- Add Buttons, Message Boxes and Text Highlights in WordPress Post
- Top 20 Free WordPress Social Share Plugins
- rel=”shortlink” Short URL Indicator and Its WordPress Support
- Pagination SEO Using rel=”next” and rel=”prev” Link Attributes
- Watch Live IPL 2012 Season 5 Online on Your Computer or Mobile










Pingback: Analyze Website or Page Performance Using Yslow and Google Page Speed | Globinch