473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Script Errors and IE

Hi,
Any help would be appreciated. I can't get IE to show me my script
errors. This makes it impossible to debug anything.
Disable Script debugging (Internet Explorer) is unchecked
Disable Script debugging (Other) is unchecked
Display notification about every script error is Checked
Thanks for your help

Mar 8 '06 #1
8 3356
Pachydermitis wrote:
Hi,
Any help would be appreciated. I can't get IE to show me my script
errors. This makes it impossible to debug anything.
Disable Script debugging (Internet Explorer) is unchecked
Disable Script debugging (Other) is unchecked
Display notification about every script error is Checked
Thanks for your help


Use Firefox
Mar 8 '06 #2
Try double-clicking the yellow triange of death in the lower corner of
your IE browser window. It should pop-up a dialog box that allows you
to check "Always display this message when a page contains errors." And
then it gives you what it interpreted went wrong.

Tony's right. Go to 'GetFirefox.com' and download it. The JavaScript
console under the Tools menu is WORTH IT. Also invaluable is the Web
Developer extension.

Mar 8 '06 #3

Benxamin wrote:
Try double-clicking the yellow triange of death in the lower corner of
your IE browser window. It should pop-up a dialog box that allows you
to check "Always display this message when a page contains errors." And
then it gives you what it interpreted went wrong.

Tony's right. Go to 'GetFirefox.com' and download it. The JavaScript
console under the Tools menu is WORTH IT. Also invaluable is the Web
Developer extension.

Else you can use the following function that will alert you every time
with the line number,
message and with the file name
function ErrorSetting(msg, file_loc, line_no) {
var e_msg=msg;
var e_file=file_loc;
var e_line=line_no;
var error_d = "Error in file: " + file_loc +
"\nline number:" + line_no +
"\nMessage:" + msg;
alert(" Error Found !!!\n
--------------\n"+error_d);

return true;
}
window.onerror = ErrorSetting;

Mar 8 '06 #4
VK

Pachydermitis wrote:
Hi,
Any help would be appreciated. I can't get IE to show me my script
errors. This makes it impossible to debug anything.
Disable Script debugging (Internet Explorer) is unchecked
Disable Script debugging (Other) is unchecked


Are you sure that you have JScript Debigger installed? It is not a part
of default IE installation, while the relevant Internet Options are
still presented. Check to see if you have "Script Debugger" in IE's
"View" menu.

If not then go to:
<http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99>

See also:
<http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/24fbd439f1bca22/f405c0312a81982e>

Mar 8 '06 #5
d
"Tony" <to****@dslextreme.WHATISTHIS.com> wrote in message
news:12*************@corp.supernews.com...
Pachydermitis wrote:
Hi,
Any help would be appreciated. I can't get IE to show me my script
errors. This makes it impossible to debug anything.
Disable Script debugging (Internet Explorer) is unchecked
Disable Script debugging (Other) is unchecked
Display notification about every script error is Checked
Thanks for your help


Use Firefox


That's not going to help the massive proportion of web users who don't, is
it? Debugging isn't about using the browser as your every-day browser, but
development.

Why do people get so childish when IE is mentioned?
Mar 9 '06 #6
VK

d wrote:
"Tony" <to****@dslextreme.WHATISTHIS.com> wrote in message
Use Firefox


That's not going to help the massive proportion of web users who don't, is
it? Debugging isn't about using the browser as your every-day browser, but
development.

Why do people get so childish when IE is mentioned?


It is not so much about "browsing experience" - anyone is entitled to
use whatever she likes the most. The question was about the script
debudding. In this aspect JavaScript Console in Firefox is much more
accurate and informative.
JScript Debugger has troubles with exceptions backtracking in complex
situations. I had a number of cases when JScript Debugger's highlight
was 10-50 lines off the base - while JavaScript Console jumped right on
the offending line.
Another drawback of JScript Debugger is his "sticky mode". If enabled,
it will pop up alerts on each error on the current page proposing to
debug. Say "no" doesn't help - it will pop up again. You need to say
"yes" and close debugger window. That means that you have continuosly
enable debugger / disable debugger (before browsing). Seems not a big
deal but irritating.

At the same time JScript Debugger has some rather powerful feature and
most importantly it's integrated with the JScript engine so you can use
Debug object and debugger statements. Also it picks up on JScript
specific stuff where JavaScript would stay happy. I would say both
Console and Debugger should be used for a profound testing (for Windows
users of course :-)

For quick test one can use online tool like <http://www.jslint.com/>

Mar 9 '06 #7
d wrote:
"Tony" <to****@dslextreme.WHATISTHIS.com> wrote in message
news:12*************@corp.supernews.com...
Pachydermitis wrote:
Hi,
Any help would be appreciated. I can't get IE to show me my script
errors. This makes it impossible to debug anything.
Disable Script debugging (Internet Explorer) is unchecked
Disable Script debugging (Other) is unchecked
Display notification about every script error is Checked
Thanks for your help

Use Firefox

That's not going to help the massive proportion of web users who don't, is
it?


That's not who I'm trying to help. My suggestion was to the developer.
Debugging isn't about using the browser as your every-day browser, but
development.
Correct. Firefox has a built-in Javascript console that reports
javascript errors, making it much easier to debug in Firefox than in IE.
Therefore, it is arguably better for the DEVELOPER to develop using
Firefox (the better tool for development) and subsequently test in IE.

Why do people get so childish when IE is mentioned?


Why do people get so childish when someone suggests using a better tool?
Mar 9 '06 #8
Thank you all for you posts, and thanks for taking the time to try to
help me.
- Yellow triangle - I dont even get one of these, I get nothing.
- That firefox debugger sounds great. The only question I have with
that is, each browser seems to have js accessable dom properties
specific to it, so that debugged code the works perfectly in firefox
still may not work in IE right?
- The debugger in the view menu gives me my studio develpers
environments. It is a bit frustrtaing having it open a new developer
environment for each error, but I will try that out and see it maybe it
will reset my standard popup errors - which although are arcane to say
the least, are I am quickly discovering, better than nothing.
Thanks again
P

Mar 13 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: mikey_boy | last post by:
Hello! Curious if anyone could give me a hand. I wrote this PHP script with makes a simple connection to a mysql database called firstdb and just pulls back the results and displays on the...
1
by: BKM | last post by:
I'm using a VB6 WebBrowser control to get info from various web pages and, occasionally, my program stops when it finds a script error on the page. It won't resume until I click 'Yes' or 'No' on...
2
by: Raphael Gluck | last post by:
HI I am wondering if anyone can help me I added a little script to a form page, so that a couple of fields have to filled in. One contains an obligatory field for number data, one for regular...
6
by: VK | last post by:
I'm using window.open method in my script to open poup window. Recently Internet Explorer users reported that the script crashes on their machine with different runtime errors. See the bug:...
3
by: Water Cooler v2 | last post by:
Questions: 1. Can there be more than a single script block in a given HEAD tag? 2. Can there be more than a single script block in a given BODY tag? To test, I tried the following code. None...
2
by: Yansky | last post by:
Hi, I was just wondering if it is possible to disable script debugging in IE from within a script. I know I can disable it manually through the IE tools menu, but is it possible to disable it from...
3
by: John Kotuby | last post by:
Hey guys, In IE7 where I am tesing my Web Apps written with VB in VS 2005 I have set the IE option: "Display Notification of all script errors" to be active. Now that I have changed some...
15
by: Lawrence Krubner | last post by:
Does anything about this script look expensive, in terms of resources or execution time? This script dies after processing about 20 or 25 numbers, yet it leaves no errors in the error logs. This is...
3
by: GazK | last post by:
I have been using an xml parsing script to parse a number of rss feeds and return relevant results to a database. The script has worked well for a couple of years, despite having very crude...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.