Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | JavaScript Debugging

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion

JavaScript Debugging
Reply
 
Thread Tools
Old 17-05-2004, 21:55   #1
Womble
cf.geek
 
Womble's Avatar
 
Join Date: Jul 2003
Location: In A Politically Correct Hell!! Viva La Revolution
Age: 59
Services: 1gig Broadband
Posts: 864
Womble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of Quads
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
Womble is offline   Reply With Quote
Advertisement
Old 17-05-2004, 22:10   #2
swoop101
cf.mega poster
 
Join Date: Jun 2003
Posts: 2,232
swoop101 has a bronzed appealswoop101 has a bronzed appeal
swoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appealswoop101 has a bronzed appeal
Re: JavaScript Debugging

There would appear to be a few, search for 'java debugger' in google and take your pick.
swoop101 is offline   Reply With Quote
Old 17-05-2004, 22:14   #3
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Re: JavaScript Debugging

Install Mozilla 1.7 and it has a built in Javascript debugger in the Tools>Web Development menu.
Richard M is offline   Reply With Quote
Old 17-05-2004, 22:17   #4
philip.j.fry
Inactive
 
philip.j.fry's Avatar
 
Join Date: Jul 2003
Posts: 1,395
philip.j.fry has reached the bronze age
philip.j.fry has reached the bronze agephilip.j.fry has reached the bronze agephilip.j.fry has reached the bronze agephilip.j.fry has reached the bronze age
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?
philip.j.fry is offline   Reply With Quote
Old 17-05-2004, 22:54   #5
Mr_love_monkey
Inactive
 
Mr_love_monkey's Avatar
 
Join Date: Jun 2003
Location: London way
Age: 50
Services: Sarcasm
Posts: 8,376
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Re: JavaScript Debugging

Or post it here, and let us have a look... I like a nice bit of javascript.
Mr_love_monkey is offline   Reply With Quote
Old 18-05-2004, 00:20   #6
punky
Inactive
 
Join Date: Jun 2003
Age: 45
Posts: 14,750
punky has a golden aurapunky has a golden aura
punky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aura
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
punky is offline   Reply With Quote
Old 18-05-2004, 00:48   #7
philip.j.fry
Inactive
 
philip.j.fry's Avatar
 
Join Date: Jul 2003
Posts: 1,395
philip.j.fry has reached the bronze age
philip.j.fry has reached the bronze agephilip.j.fry has reached the bronze agephilip.j.fry has reached the bronze agephilip.j.fry has reached the bronze age
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.
philip.j.fry is offline   Reply With Quote
Old 18-05-2004, 08:33   #8
Womble
cf.geek
 
Womble's Avatar
 
Join Date: Jul 2003
Location: In A Politically Correct Hell!! Viva La Revolution
Age: 59
Services: 1gig Broadband
Posts: 864
Womble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of Quads
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
Womble is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:33.


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