Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged debug



« Prev 1 Next »
// create a variable to toggle debugging // to use it, just call debug(with,any,optional,parameters) debug(x,y,z); // it will try to guess what type of message to log, or you can specify in the first parameter debug("error",x,y,z);
1 1144 posted 9 years ago by brandonjp
In javascript there is no function for printing variables like you have PHP, I use print_r and var_dump a lot in PHP for dumping variables so I wanted to create a simular function in javascript.
0 1063 posted 12 years ago by satie83
0 723 posted 14 years ago by ashsa
Use to debug javascript in all browsers.
0 716 posted 14 years ago by Meander365
0 607 posted 15 years ago by aadsm
Just include this script on the site and you’ll get a Firebug console that pops up for debugging in any browser. Not quite as full featured but it’s still pretty helpful! Remember to remove it when you are done.
1 740 posted 15 years ago by paulgrenwood
Javascript time execution utility: Use: var otd = new timeDebugger(); otd.start(); alert(otd.end());
1 847 posted 15 years ago by marcocs
Simple list of commands to use within Adobe AIR to help debug an application.
0 664 posted 16 years ago by 1man
prevent errors in other browsers
0 914 posted 16 years ago by localhorst
« Prev 1 Next »