JavaScript Debugging - How?

M

Mike Copeland

I have a code page that has a few JavaScript functions (full
disclosure: I cannibalized it from code I got on Google, so I'm not sure
it's right...), and the page acts differently when I use IE7 from my IDE
(HTML-Kit) and from my Web site. Specifically, when I use IE7 loading
it from my Web host everything seems fine: it works as expected and
there are no "errors".
However, when I look at it via HTML-Kit the JavaScript doesn't work
(the only displayed is my default image) and I get a little "blip" sound
as the page loads.
I assume I have some error, one which produces different behavior in
the 2 environments (true?). I don't have the faintest idea how I'd
debug this problem, as I don't know how to test/debug JavaScript beyond
inserting "alerts" here and there. There must be _some_ mechanism
that's used to trace and uncover JavaScript errors, right?
Please advise. TIA

http://midtownmuseumdistrict.org/Businesses03.html
 
E

Evertjan.

Mike Copeland wrote on 04 aug 2009 in comp.lang.javascript:
I assume I have some error, one which produces different behavior in
the 2 environments (true?). I don't have the faintest idea how I'd
debug this problem, as I don't know how to test/debug JavaScript beyond
inserting "alerts" here and there. There must be _some_ mechanism
that's used to trace and uncover JavaScript errors, right?

Debugging large code from someone unknown is near impossible,
because:

1 You do not know what the designer ment it to do.

2 the designer did not knoew what you want it to do.

There are two viable options:

1 Build your own code and page

2 Hire or otherwise induce someone else to do that.

No, I am not going debug "your" code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,276
Latest member
Sawatmakal

Latest Threads

Top