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 888 posted 8 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 840 posted 11 years ago by satie83
0 525 posted 13 years ago by ashsa
Use to debug javascript in all browsers.
0 549 posted 13 years ago by Meander365
0 460 posted 14 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 552 posted 14 years ago by paulgrenwood
Javascript time execution utility: Use: var otd = new timeDebugger(); otd.start(); alert(otd.end());
1 645 posted 14 years ago by marcocs
Simple list of commands to use within Adobe AIR to help debug an application.
0 496 posted 15 years ago by 1man
prevent errors in other browsers
0 716 posted 16 years ago by localhorst
« Prev 1 Next »