IS there a java script debuger that can be used with frontpage and

F

Frank H. Shaw

We need to check the value of varables and objects using the DOM model we
have run into problems with peristatace of the varables and objects in our
development of or website using javascript and would like to know if there
are any programing tools that could help us trace through the DOM arrays and
check the value of properitys in the objects contained in our web site page
or document using frontpage. What tools sould we be using to help us in our
develpoment. THANKS
 
J

Jim Cheshire

Frank said:
We need to check the value of varables and objects using the DOM
model we have run into problems with peristatace of the varables and
objects in our development of or website using javascript and would
like to know if there are any programing tools that could help us
trace through the DOM arrays and check the value of properitys in the
objects contained in our web site page or document using frontpage.
What tools sould we be using to help us in our develpoment. THANKS

I've never tried it, but you might be able to attach to iexplore.exe via the
Microsoft Script Editor.

--
Jim Cheshire
JIMCO Software
http://www.jimcoaddins.com

The premiere add-in and software source
for Microsoft FrontPage.
 
K

Kevin Spencer

There sure is, Frank! If you have FrontPage, you have Microsoft Script
Debugger, and if you have Internet Explorer, you're almost there. You only
lack one thing. Go into IE, select Tools|Internet Options, go to the
"Advanced" tab, and UNCheck the option that says "Disable Script Debugging
(Internet Explorer)." From now on, any exception raised by JavaScript in an
HTML page displayed in IE will cause a prompt to appear asking you if you
want to debug the script in the debugger.

In addition, you can put breakpoints into your JavaScript. This is done via
a "debugger;" statement in your code. When the JavaScript execution reaches
the debugger statement, it will launch the debugger, and load your entire
page into it. You can then examine the entire DOM of your page, as well as
stepping through your JavaScript and doing Watches, etc.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
J

Jim Cheshire

Kevin said:
There sure is, Frank! If you have FrontPage, you have Microsoft Script
Debugger, and if you have Internet Explorer, you're almost there. You
only lack one thing. Go into IE, select Tools|Internet Options, go to
the "Advanced" tab, and UNCheck the option that says "Disable Script
Debugging (Internet Explorer)." From now on, any exception raised by
JavaScript in an HTML page displayed in IE will cause a prompt to
appear asking you if you want to debug the script in the debugger.

Keep in mind that FrontPage comes with the Microsoft Script Editor. The
Microsoft Script Debugger is not part of Office but it's downloadable from
the MS Web site. However, keep in mind that it's very old, often does not
work, and is not supported by Microsoft.

--
Jim Cheshire
JIMCO Software
http://www.jimcoaddins.com

The premiere add-in and software source
for Microsoft FrontPage.
 
K

Kevin Spencer

Thanks Jim.

I wasn't sure, as I have the Script Debugger on my system, but (1) I don't
know which app it came bundled with, and (2) I never use it,as I have Visual
Studio (all recent versions). I should have stated so! Now I will hang my
head in private shame and kick myself for making an assumption!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
J

Jim Cheshire

Kevin said:
Thanks Jim.

I wasn't sure, as I have the Script Debugger on my system, but (1) I
don't know which app it came bundled with, and (2) I never use it,as
I have Visual Studio (all recent versions). I should have stated so!
Now I will hang my head in private shame and kick myself for making
an assumption!

I sure didn't mean that post for any reason other than to let Frank know
that the Script Editor is what he has! No reason to hang your head in
shame. I checked the Script Editor last night and at least for me, I am
unable to attach to a process with it.

Yes, VS.NET is a great debugger for JScript.

--
Jim Cheshire
JIMCO Software
http://www.jimcoaddins.com

The premiere add-in and software source
for Microsoft FrontPage.
 
S

Steve Easton

Download and install FireFox
Preview / run the page in FireFox and then on the FireFox toolbar, click Tools >
Javascript Console.

A dialog will open listing errors if any ,with a pointer to the exact term or character in
the script that is causing the error.
Note though, that if there is a script error, it simply won't run in FireFox, but the
console will still show the errors.

Also note that IE will run scripts that FireFox won't. But if it runs in FireFox it will
run in IE.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
K

Kevin Spencer

The nice thing about a debugger is the ability to do Watches, though. You
can look over the entire DOM of the current page. I wouldn't know what to do
without it! Of course, programming is all I do. ;-)

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
K

Kevin Spencer

I sure didn't mean that post for any reason other than to let Frank know

I know that, Jim. But I have to acknowledge my "sins" publicly as a means of
teaching myself to avoid them in the future! I hung my head in shame for my
own benefit!

As Grissom (CSI) once said "I'm wrong all the time. That's how I get to
right!" :-D

--

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
S

Steve Easton

Hi Kevin, I agree.

I was giving Frank an example of a "freebie."

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
K

Kevin Spencer

I was giving Frank an example of a "freebie."

Of course, Steve. And a freebie is all some people can afford. I can
certainly remember my freebie days! Downloading a shareware C compiler from
a BBS and writing code in DOS Edit. That's how I got started in programming.
And of course it's also how I got started at workarounds! ;-)

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
S

Steve Easton

DOS ;-)

I remember the green letters on a black screen days.
Never used anything as elegant as a "compiler" back then though.
Went through a lot of tractor feed printer paper though.
;-)

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
K

Kevin Spencer

It was a command-line compiler. No IDE!

Sounds like you may have gotten started a little earlier than I did too!

--

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
S

Steve Easton

Yep.
Actually wrote my first "routine" ( can't call it a program ) using punch cards in 1978


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
S

Steve Easton

1984 or there about.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 

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

Top