Book Section
-----
TY JavaScript 3rd Ed.
Teach Yourself JS 1.5
Teach Yourself DHTML
Teach Yourself JS 1.3
LLWW: JavaScript

General Section
-----
Discussion Forum
Articles / Tips
JavaScript Links
About the Author
Privacy Policy
Contact Me



Other Sites
-----
Website Workshop
JavaScript Weblog

JavaScript Workshop Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Hints: Turning on Error Messages

 
Post new topic   Reply to topic    JSWorkshop Forum Index -> Articles
View previous topic :: View next topic  
Author Message
mgm
Site Admin
Site Admin


Joined: 13 Jul 2002
Posts: 304
Location: Salt Lake City, UT

PostPosted: Sun Aug 25, 2002 3:10 am    Post subject: Hints: Turning on Error Messages Reply with quote

We often have questions like this in our forum:
Quote:
I wrote the following script and nothing at all happens when I view it in a browser.

In cases like this, if nothing is really happening at all, JavaScript might be turned off in the browser. But more likely, your browser is simply not configured to display error messages. When you're debugging a script, be sure you turn on error messages so you'll have all the information you can get about your script's problems.

Here's how to enable error messages in Internet Explorer:
  1. From the menu, select Tools | Internet Options.
  2. Select the Advanced tab at the top of the dialog.
  3. Uncheck the Disable script debugging option.
  4. Check the Display a notification about every script error option.
  5. Click OK to save the settings.
You might find these error messages annoying (and surprisingly common) when visiting other people's sites. That's why I keep the errors disabled. When they're disabled, you'll see a tiny red ! icon in the IE status bar when an error happens - double-click on this icon to display the error message.

In Netscape, errors are displayed on the JavaScript Console. You might need to view the console to see them. Type javascript: into the address field in most versions of Netscape to view the console. If this doesn't work in your version, try selecting Tasks | Tools | JavaScript Console from the menu.
_________________
Michael Moncur
Owner and Moderator, The JavaScript Workshop
Read the guidelines before posting: http://jsworkshop.com/posting.html
Back to top
View user's profile Send private message Visit poster's website
zachariah
Member
Member


Joined: 07 Sep 2002
Posts: 100
Location: Earth

PostPosted: Sat May 15, 2004 8:47 pm    Post subject: Re: Hints: Turning on Error Messages Reply with quote

mgm wrote:
Type javascript: into the address field
Neat trick, that. Works in Mozilla (which Netscape really is just a re-branded version of), too.
_________________
Firefox Thunderbird
Back to top
View user's profile Send private message
phil karras
Senior Member
Senior Member


Joined: 15 Jul 2002
Posts: 1750
Location: MD

PostPosted: Tue Nov 08, 2011 5:42 am    Post subject: Reply with quote

Just a quick update, Firefox, and probably a few other newer browsers, now allow add-ins and one of the add-ins to Firefox that i am using is a JavaScript debugger!

One of them is called, "JavaScript Debugger" see: https://addons.mozilla.org/en-US/firefox/addon/javascript-debugger/

As in all things add-on there will no doubt be more than one by the time you read this.
_________________
Phil K
Circle Software Consulting
Test website: http://cs.yrex.com/
Guidelines for Posting: http://jsworkshop.com/posting.html
IHBAAA = It Has Been Asked And Answered
KISS: http://jsworkshop.com/bb/viewtopic.php?t=508
Back to top
View user's profile Send private message Visit poster's website
sohnee
Senior Member
Senior Member


Joined: 17 Jul 2002
Posts: 2054
Location: UK

PostPosted: Fri Nov 11, 2011 12:20 pm    Post subject: Reply with quote

I use Firebug http://getfirebug.com/

There are now (more or less) equivalents in all browsers now.

IE developer tools
Opera Dragonfly (Built in)
WebKit (Google Chrome / Safari) developer tools / inspector (Built in)

Interestingly, the contributions Google make to the tools for Chrome are contributed back to WebKit, so they will appear in Safari over time.
_________________
I also work on... Steve Fenton's Blog and contribute to The Enhance PHP Unit Testing Framework
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    JSWorkshop Forum Index -> Articles All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
(c) 1997-2002 Starling Technologies and Michael Moncur. Portions (c) Sams Publishing.