by shawndrost · 13y ago · 0 comments
Shameless plug: I teach at a school for JS devs named Hack Reactor. If rewriting Underscore as a learning tool sounds like fun, you should apply. http://hackreactor.com
[1] until now. [2] Chapters 3-4. http://discover-devtools.codeschool.com/chapters/3
debugger;
will stop the interpreter at any point you like, with console scoped at that point, has sped up my JS'ing greatlyI look forward to applying to Hack Reactor when it's financially feasible! :)
Chrome instructions - https://developers.google.com/chrome-developer-tools/docs/ov... ... others are easy enough to find
Just whatever you do, remove the debugger (and console.log) statements before committing/deploying!!! I've seen this too many times and it's not nice when you end up throwing exceptions in older browsers that have no idea what these statements mean.