Google Answers Logo
View Question
 
Q: Where can I get a Javascript debugger that works? ( No Answer,   9 Comments )
Question  
Subject: Where can I get a Javascript debugger that works?
Category: Computers > Programming
Asked by: centure7-ga
List Price: $30.00
Posted: 29 Jan 2005 21:52 PST
Expires: 28 Feb 2005 21:52 PST
Question ID: 465648
I have Windows XP, Firefox 1.0, Opera 7.54, and the latest version of
IE. I have tried three to five debuggers, varying in price from free
to $300, but have gotten none of them to work! Perhaps I'm doing
something wrong, but please save the following code code to a file to
test to make sure it works:

<html>
<script language="javascript">
document.write("BEGIN TEST!<p>");
document.write(add(1,1));
function add(var a,var b){
var a = 1;
var b = 2;
var c = a + b;
return c;
}
</script>
</html>

Clarification of Question by centure7-ga on 29 Jan 2005 21:53 PST
Actually that test code doesn't work. So instead use:
<html>
<script language="javascript">
document.write("TEST ADDITION: ");
document.write(addnumbers(1,1));
document.write("<p>");
document.write("END TEST!");

function addnumbers(a,b){
var c = a + b;
return c;
}

</script>
</html>

Clarification of Question by centure7-ga on 29 Jan 2005 23:49 PST
The debugger should have step-through ability to watch variable values change.

Clarification of Question by centure7-ga on 30 Jan 2005 00:29 PST
I am trying to get Venkman to work. I have found that when I can get
the code to show in the "loaded scripts" window only if I open the
file before loading the debugger. If I close the debugger, then reopen
it with the file open, the script will not load into the loaded
scripts window if it wasn't there already. You would have to close all
instances of Firefox, then reopen firefox, then open the file to
debug, and finally open Vennkman, then the script will appear in the
scripts window. However, line-step debugging I have yet to get to work
at all.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Where can I get a Javascript debugger that works?
From: akash_kava-ga on 30 Jan 2005 02:03 PST
 
You can use Visual Studio Interdev, and you can use internet explorer
and visual interdev has good debugger I am using it quite often.

- Akash Kava
Our free IMAP/POP3 service at http://www.evenmail.com
Subject: Re: Where can I get a Javascript debugger that works?
From: centure7-ga on 30 Jan 2005 12:15 PST
 
Does Microsoft still even sell Interdev? I have the 2003 .Net Studio,
but no Interdev appears to be included. I can open the file using
Visual Studio but the debugging options are greyed out.
Subject: Re: Where can I get a Javascript debugger that works?
From: dominik1234-ga on 30 Jan 2005 13:55 PST
 
VS.net 2003 works for me (with IE). Open the file in VS and in IE. In
Visual Studio click Debug/Processes, and attach to the internet
explorer instance (script). You should now be able to debug the script
(breakpoints, step-through, watches).
Subject: Re: Where can I get a Javascript debugger that works?
From: centure7-ga on 30 Jan 2005 14:35 PST
 
dominik1234, I did as you instructed, but all debug options are greyed
out, except for the "stop debugging". I first loaded the webpage file
in IE. Then I loaded MDE and opened the file with that as well. I then
selected "debug process" and attachted the IE page that I previously
loaded. What did I attach it to exactly? In any case, after doing
that, the only debugging option that was available was "stop
debugging" when I clicked that, there was no way to start again.
Subject: Re: Where can I get a Javascript debugger that works?
From: akash_kava-ga on 31 Jan 2005 02:52 PST
 
Check following option,

1) Interent Explorer tools
2) Clcik on options
3) Click on tab Advanced
4) see your Disable script debugging option, is it on or off, it mut
be off in order to debug scripting.
Subject: Re: Where can I get a Javascript debugger that works?
From: akash_kava-ga on 31 Jan 2005 03:00 PST
 
Ok here is the final answer.

There is no debugger which will start debugging client side code so easily...

If i have to debug, what I do is, I insert one falty statement in the
beginning of code, open it in internet explorer and then at execution
of falty statement it asks me to debug. And then i goto debugger, i
skip faulty statement and then go ahead for step by step debugging :)
it sounds funny but I know this method works and I use it.

so what you need to do is write
<script language='javascript'>
<!--

    alert(document.adffdffd) // <-- this one is faulty statement.

    .. write your debugging code here...

//-->
</script>

Then open this in internet explorer, it will take you to debugger.

Hope this works..
Subject: Re: Where can I get a Javascript debugger that works?
From: dominik1234-ga on 31 Jan 2005 10:27 PST
 
Have you tried setting a breakpoint and then reloading the page in IE?
Subject: Re: Where can I get a Javascript debugger that works?
From: centure7-ga on 31 Jan 2005 21:43 PST
 
dominik1234, I set the break point and refreshed the page. Worked
perfectly! Thanks very much for your help. Go ahead and post what
you've said as the answer and I'll be happy to give you the money for
answering. Glad I can finally get my website running.
Subject: EBAY.com: How do I send buyers a message, automatically.
From: neutron_coding-ga on 03 Mar 2005 19:59 PST
 
For some reason I can't post comments to the above question. If you
want I can develop a very basic program to accomplish what you're
asking for. I have no problem with the price that you have set and
payment would only be upon a program that you have tested fully and
would meet your needs. You can contact me at
neutroncoding.at.yahoo.com (.at.=@)

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy