/    Sign up×
Community /Pin to ProfileBookmark

How to get JS debugging messages

hi, I’m finding that I’m making silly mistakes (like small syntax errors) in my JS/html which are sometimes hard to spot straight away. For example, when coding python on the web, I usually use try: except: and then use the error function to output what went wrong on the webpage.

What do you guys recommend for debugging JS? Does JS have something similar?

Thanks.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@skywalker2208Mar 04.2010 — Install firebug on firefox and it will tell you about syntax errors and other things. Firebug can really be helpful in figuring out problems in your javascript code.
Copy linkTweet thisAlerts:
@toicontienMar 05.2010 — You could also try the Blackbird Logging Utility. We use it at work and it's fantastic. It's a good compliment to Firebug and can be shown/hidden with a keyboard combo. We actually deploy it in production, not just in development, and only show error and warning messages. Customer service found it useful when trouble shooting bugs that our customers report.
Copy linkTweet thisAlerts:
@lekeauthorMar 05.2010 — Wow thanks. Both of them are awesome.
×

Success!

Help @leke spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...