Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   General IT Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=19)
-   -   JavaScript Debugging (https://www.cableforum.uk/board/showthread.php?t=12482)

Womble 17-05-2004 21:55

JavaScript Debugging
 
Hi, does anyone know if there is software that checks whether JavaScript is correctly written??. I have written a small program but I have tried to debug it by eye/hand and I can't seem to see the fault, is there a wee bit og software out there that can do it??

Cheers

swoop101 17-05-2004 22:10

Re: JavaScript Debugging
 
There would appear to be a few, search for 'java debugger' in google and take your pick.

Richard M 17-05-2004 22:14

Re: JavaScript Debugging
 
Install Mozilla 1.7 and it has a built in Javascript debugger in the Tools>Web Development menu.

philip.j.fry 17-05-2004 22:17

Re: JavaScript Debugging
 
Quote:

Originally Posted by swoop101
There would appear to be a few, search for 'java debugger' in google and take your pick.

Or don't search for Java debugger ;)

For Mozilla (and Netscape) browsers, there is Venkman, IE probably has something similar. That's assuming the Javascript is for a web page?

Mr_love_monkey 17-05-2004 22:54

Re: JavaScript Debugging
 
Or post it here, and let us have a look... I like a nice bit of javascript.

punky 18-05-2004 00:20

Re: JavaScript Debugging
 
There is a javascript debugger in the MS Visual Studio suite, but i've never managed to use it sucessfully. Either paste it in here so Mr_Love_Monkey and I can have a look, or if its private, try this tried and tested technique: Put echo statements all in your program, around the major lumps of code. By seeing what gets printed, you can tell what lump of code is freezing the interpreter. Eventually, using this technique you can narrow it down to the lines causing a problem.

When you know roughly where abouts the code is freezing, you can put two front slashes (//) at the beginning of the line, which means it would be ignored - when the program runs to the next echo statement, you found the problem

HTH

philip.j.fry 18-05-2004 00:48

Re: JavaScript Debugging
 
Quote:

Originally Posted by punky
There is a javascript debugger in the MS Visual Studio suite, but i've never managed to use it sucessfully.
HTH

As far as I can remember, it just brought up a browser (IE) window and it would ask you to check it manually and reported on the line of any failure. There's an option in IE to turn on debugging, errors show up in the bottom left hand corner with a warning symbol, if you double click on that it gives the error type and line number.

Womble 18-05-2004 08:33

Re: JavaScript Debugging
 
Thanks for all the replys

Quote:

Originally Posted by Mr_love_monkey
Or post it here, and let us have a look... I like a nice bit of javascript.

Can't realy do that, its part of my coarse work, but cheers for the offer

Quote:

Originally Posted by Richard M
Install Mozilla 1.7 and it has a built in Javascript debugger in the Tools>Web Development menu.

Downloaded Mozilla, works a treat
Thanks once again


All times are GMT. The time now is 16:43.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum