Closed Thread Icon

Preserved Topic: JavaScript Error Detection ! HELP ! (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18522" title="Pages that link to Preserved Topic: JavaScript Error Detection ! HELP ! (Page 1 of 1)" rel="nofollow" >Preserved Topic: JavaScript Error Detection ! HELP ! <span class="small">(Page 1 of 1)</span>\

 
e-maestro
Bipolar (III) Inmate

From: Northwestern Lower Michigan, USA
Insane since: Apr 2001

posted posted 10-31-2001 18:46

I'm currently studying JavaScript. When there are errors in some code, finding them in order to correct them seems to be impossible. Is there some program or editor that helps with this, gives line numbers or something where the error is?

I don't think I'll ever get through this class unless I can figure out how to efficently find the errors in my coding (and in the books coding!).

THX

e-maestro

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 10-31-2001 18:58

In IE: double click the little icon in the lower left of the whole browser window (on the left of the status bar). Then check the checkbox to always display the dialogue box, and click "details".

In NN: Type "JavaScript:" (with the colon) in the address bar.

In Mozilla: Tasks -> Tools -> JavaScript Console.

In Opera: go into the preferences, and look around *very* carefully, it's in there somewhere. In the second half of the list, I think. Look for the option to display JavaScript errors.

--------

If the problem isn't a real error, and it's just a bug, then you'll have to do some debugging. Try putting alert() functions in places to tell you about what's going on in the code, so you can see if something you didn't expect happens.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 10-31-2001 19:09

e-maestro: A lot of the good script editors have a feature with line numbering in and I suspect your best bet is mr.maX's HTMLBeauty:
www.maxworld.co.yu/htmlbeauty

Without line numbering tracking down the exact line refered to in the error message can be a pain.

Emps


You're my wife now Dave

e-maestro
Bipolar (III) Inmate

From: Northwestern Lower Michigan, USA
Insane since: Apr 2001

posted posted 10-31-2001 21:47

WOW!

THX y'all this should be a good start and a big help! I will check it out the options ASAP!

e-maestro

kars10
Bipolar (III) Inmate

From: Europe
Insane since: Mar 2001

posted posted 11-04-2001 17:37

isnt there a way to re-route those error-detections so that you make it call a function that alerts you with the line number and whatsoeve`?
I heard something about that somewhere. I guess I read it in a book...
where the heck is that freagin..*runsoutinordertofindit*


every1 with psycho10esis raise my hand

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 11-05-2001 09:27

kars10, we had a long discussion about this long time:
http://www.ozoneasylum.com/Forum2/HTML/001037.html

kars10
Bipolar (III) Inmate

From: Europe
Insane since: Mar 2001

posted posted 11-05-2001 14:26

well, that's a lot of stuff. I read through it until this HUGE think "in the name of the JS Bible".
I copied it down and tread through it this evening sitting next the fire and a glass of wine... =)
thanks a lot.
karsten

every1 with psycho10esis raise my hand

« BackwardsOnwards »

Show Forum Drop Down Menu