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 1138 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 1060 posted 12 years ago by satie83
0 721 posted 14 years ago by ashsa
Use to debug javascript in all browsers.
0 714 posted 14 years ago by Meander365
0 606 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 739 posted 15 years ago by paulgrenwood
Javascript time execution utility: Use: var otd = new timeDebugger(); otd.start(); alert(otd.end());
1 845 posted 15 years ago by marcocs
Simple list of commands to use within Adobe AIR to help debug an application.
0 661 posted 16 years ago by 1man
prevent errors in other browsers
0 914 posted 16 years ago by localhorst
« Prev 1 Next »