Profile Picture
IT Made Easy
The site provides some rough IT Notes that make your life easier. The site currently has notes on HTML, CSS, Regex, OOPS, JS, JQuery, PHP, Java, ASP.NET, C#, Database, Linux, URL Rewrite, SEO, Project Management and Hosting. Please do share this site if you like.

Debugging

  • Microsoft Script Debugger
  • Firebug Plugin for Firefox.



debug.group( 'start of group' );

debug.log( a );         //Log

debug.debug( b );      //Debug

debug.info( c );         //Information

debug.warn( d );         //Warning

debug.error( e );         //Error

debug.groupEnd();

debug.setLevel(0);      // Ensure no console logging occurs. We can use this function to specify debug level


If you replace debug object by console object for log, debug, info, warn and error it will gracefully degrade to console.log


Inshort

  • use console.log in sprintf format
  • use pointers to function in console.log() to print stack trace of the function
  • use timer logging using console.time("abc") amd console.timeEnd("abc")

IT Notes

by VinodSebastian



IT Downloads


Catalogue