Posted By

kentos on 09/09/10


Tagged


Versions (?)

trace-like func for javascript


 / Published in: JavaScript
 

If you're front-end, it's a hassle to check values and stuff. If you want to skip addons and such, this functions console.log's what you want

  1. function trace(str) {
  2. try {
  3. console.log(str);
  4. } catch(e) {
  5. }
  6. }

Report this snippet  

You need to login to post a comment.