17-05-2004, 21:55
|
#1
|
|
cf.geek
Join Date: Jul 2003
Location: In A Politically Correct Hell!! Viva La Revolution
Age: 59
Services: 1gig Broadband
Posts: 864
|
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
|
|
|
17-05-2004, 22:10
|
#2
|
|
cf.mega poster
Join Date: Jun 2003
Posts: 2,232
|
Re: JavaScript Debugging
There would appear to be a few, search for 'java debugger' in google and take your pick.
|
|
|
17-05-2004, 22:14
|
#3
|
|
Inactive
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
|
Re: JavaScript Debugging
Install Mozilla 1.7 and it has a built in Javascript debugger in the Tools>Web Development menu.
|
|
|
17-05-2004, 22:17
|
#4
|
|
Inactive
Join Date: Jul 2003
Posts: 1,395
|
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?
|
|
|
17-05-2004, 22:54
|
#5
|
|
Inactive
Join Date: Jun 2003
Location: London way
Age: 50
Services: Sarcasm
Posts: 8,376
|
Re: JavaScript Debugging
Or post it here, and let us have a look... I like a nice bit of javascript.
|
|
|
18-05-2004, 00:20
|
#6
|
|
Inactive
Join Date: Jun 2003
Age: 45
Posts: 14,750
|
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
|
|
|
18-05-2004, 00:48
|
#7
|
|
Inactive
Join Date: Jul 2003
Posts: 1,395
|
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.
|
|
|
18-05-2004, 08:33
|
#8
|
|
cf.geek
Join Date: Jul 2003
Location: In A Politically Correct Hell!! Viva La Revolution
Age: 59
Services: 1gig Broadband
Posts: 864
|
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
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 17:03.
|