Click to See Complete Forum and Search --> : javascript debugger and editor


kell_y
01-03-2003, 09:34 PM
I want to find a good javascript debugger and editor, does anyone has any suggestion?

khalidali63
01-03-2003, 10:20 PM
Homsesite may be?

Reno
01-03-2003, 10:21 PM
I am sure one of the js masters who frequent this forum will offer a more sophisticated answer, but for now, you can open the page where the javascript is located in Netscape , then type:

javascript:

into the address field, and hit the enter key. That will at least give you a start on debugging the code...

blufive
01-04-2003, 06:29 AM
Mozilla/Netscape 7 both come with a javascript debugger built in. There's some documentation over here (http://www.mozilla.org/projects/venkman/)

ebenezer
01-04-2003, 10:32 AM
Can someone advise me about Microsoft Script Debugger? I can't get it to work, i.e. Debugger does not appear in the View menu in IE6. The documentation I have been able to find doesn't answer my questions:

1) Will it run with IE6 under Windows 98?
2) If so, in which directory should it be installed?
3) What else do I need to do, if anything, to run it?

One bit of info I came across says "use the add/remove programs" feature in Control Panel; however this expects to find a CD!

ebenezer
01-04-2003, 02:57 PM
Dave - thank you, this is helpful. Following your earlier posting I managed to find the MS script debugger on my MSDN Library - Visual Studio 6.0 CD and installed it. It now works from within IE, too!

dkc59
01-05-2003, 01:19 PM
Originally posted by Dave Clark
Can't speak for a JavaScript editor (NotePad is fine for me -- though I also use the HTML view of FrontPage for that). However, I also use the MS Development Environment that comes with FrontPage. This includes a very powerful Interactive Script Debugger (VBScript, JavaScript, etc.).

Dave

I am new to Java scripts & Front Page. Please tell me how to access the Script debugger in Front Page.

I was attempting to use this Script debugger that I got from JavaScript Source:

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function reportError(msg,url,line) {
var str = "Err: " + msg + " on line: "
+ line + "\nURL: " + url + "\nWeb: "
+ navigator.appName + " " + navigator.appName
+ " " + navigator.appVersion;
document.errform.error.value = str;
return true;
}
window.onerror = reportError;
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<form name=err>
<input type=button value="Cause JS Error" onClick="brokenScript()">
</form><p>
<form name=errform>
<textarea name=error rows=5 cols=70></textarea>
</form>

<!-- Script Size: 0.92 KB -->

and got the following error: Err: Object expected on line: 32 (Line 32 = <form name=errform>)

I don't know what this means. Will you help?:confused:

dkc

dkc59
01-05-2003, 02:37 PM
Originally posted by Dave Clark
Tools/Macro/Microsoft Script Editor



I would say that line 32 is this line (some blank lines, in your page, aren't counted):

<input type=button value="Cause JS Error" onClick="brokenScript()">

and the error message indicates that there is no function called brokenScript() in your page.

Dave

Thanks Dave, for your swift response. You have answered the question but I am still lost. The script that I initially copied contains an error, correct? How do I get the function? I thought it was included in: <!-- Begin
function reportError(msg,url,line) {
var str = "Err: " + msg + " on line: "
+ line + "\nURL: " + url + "\nWeb: "
+ navigator.appName + " " + navigator.appName
+ " " + navigator.appVersion;
document.errform.error.value = str;
return true;
}
window.onerror = reportError;
// End -->
</script>

I would address this with the author at The JavaScript Source!! http://javascript.internet.com (Script Debugger), but this particular script didn't list one. I appreciate your help and as soon as I can, I will be coming to view your tutorials, so that perhaps I can stop asking basic questions.

Thank you for your time.

dkc:confused:

hnorris
03-05-2003, 09:26 AM
Hello -

From the other posts here, appears you have to purchase an expensive MS web development suite to get a javascript debugger - any ideas on what the LEAST expensive way to get a fully functional MS script debugger would be? I purchased FrontPage a few years ago but the script debugger wasn't packaged with it a that point.

Thanks for your thoughts!

- Hnorris

boojum
03-05-2003, 05:35 PM
if ie7 comes out, for example, and it supports w3c DOM events, will i have to buy interdev7 or whatever to get an up to date debugger?

hnorris
03-05-2003, 06:28 PM
Hi Dave -

Thanks for your reply - I had wondered about that option - how much would one likely save off the retail price - I'm guessing about 40% ?.

- Hnorris

hnorris
03-05-2003, 09:30 PM
Kool! thanks much for the info!