TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

JavaScript debugging tips

58 pointsby berznizabout 11 years ago

8 comments

jbejaabout 11 years ago
IMHO, the title should be "5 JavaScript debugging tips you’ll start using today in Chrome".
评论 #7327061 未加载
评论 #7327156 未加载
maxmcdabout 11 years ago
Worth noting that the chrome emulator now properly renders the correct pixel ratio making it significantly more useful.
gargarplexabout 11 years ago
I had to update Chrome to get the Emulate feature. Awesome feature!
评论 #7327071 未加载
taericabout 11 years ago
Emacs and skewer-mode. Demo here: <a href="http://www.youtube.com/watch?v=4tyTgyzUJqM&amp;feature=youtu.be" rel="nofollow">http:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=4tyTgyzUJqM&amp;feature=youtu.be</a>
lukasmabout 11 years ago
Didn&#x27;t know about Audit. Very useful. Thanks.
nevi-meabout 11 years ago
I&#x27;m in the Chrome camp, but for the times that I&#x27;ve used Opera&#x27;s Dragonfly thingy, I&#x27;ve gotten value from it. The only thing that used to suck about it was requiring an Internet connection. A few years ago when I was in varsity Internet was a luxury outside campus.
taspeotisabout 11 years ago
debugger is a nice keyword, although I&#x27;ve noticed it slipping into committed code (at work) more and more frequently. Our code review process catches it most of the time, but it&#x27;s noise in the source control system (another commit to remove it).<p>Doesn&#x27;t make it any less valuable, and a stray debugger; statement doesn&#x27;t cause any problems out in production.<p>The last three were new to me. Emulating mobile layouts will save a heap of time, currently I use Electric Plum&#x27;s simulators (which are good, but another tool to set up).
评论 #7327199 未加载
gedrapabout 11 years ago
Related, more good tips: <a href="https://plus.google.com/+MarkBennettCa/posts/N1qwzwuAZd1" rel="nofollow">https:&#x2F;&#x2F;plus.google.com&#x2F;+MarkBennettCa&#x2F;posts&#x2F;N1qwzwuAZd1</a>