473,655 Members | 3,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't inspect or watch variable in Microsoft Script Debugger.

I have a javascript program that works fine under Firefox and on IE
when running XP, but is having a problem with IE running under Windows
2000 Pro.

On my personal XP development machine I have the Microsoft Script
Editor and I can set a breakpoint, step through code, inspect
variables, etc... with no problem.

On a machine where I am trying to debug this problem I am running
Windows 2000 Pro with IE 6. I installed the Microsoft Script Debugger.
When the program hits the exception the script debugger will come up
and show me the line where the error occurred.

I need to be able to inspect the variables to determine the problem.
However, from what I can tell, there isn't anywhere to inspect or watch
the variables in MSD?

Am I missing something?

-alan

Oct 3 '06 #1
4 5933
ar*****@gmail.c om wrote in comp.lang.javas cript:
I have a javascript program that works fine under Firefox and on IE
when running XP, but is having a problem with IE running under Windows
2000 Pro.

On my personal XP development machine I have the Microsoft Script
Editor and I can set a breakpoint, step through code, inspect
variables, etc... with no problem.

On a machine where I am trying to debug this problem I am running
Windows 2000 Pro with IE 6. I installed the Microsoft Script Debugger.
When the program hits the exception the script debugger will come up
and show me the line where the error occurred.

I need to be able to inspect the variables to determine the problem.
However, from what I can tell, there isn't anywhere to inspect or watch
the variables in MSD?

Am I missing something?
No, the MS Script Debugger is as useless and unimproved as IE 6, which has
been around eons. You can debug (monitor variables) through alerts or
inserting text in the browser content. But the debugger doesn't even name
the file (external JS file). MS doesn't seem particularly motivated to
improve its HTTP client; must be satisfied that a majority of PC users
will be using some form of IE rather than switch. Although the news says
that other browsers are gaining ground.

Don't take my word for it:

http://roho2003.blogspot.com/2005_12...3_archive.html
http://smotricz.blogspot.com/2004_06...z_archive.html
http://blogs.opensymphony.com/plight...bugging_with_v
isu.html

Oct 3 '06 #2

<ar*****@gmail. comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .
>I have a javascript program that works fine under Firefox and on IE
when running XP, but is having a problem with IE running under Windows
2000 Pro.

On my personal XP development machine I have the Microsoft Script
Editor and I can set a breakpoint, step through code, inspect
variables, etc... with no problem.

On a machine where I am trying to debug this problem I am running
Windows 2000 Pro with IE 6. I installed the Microsoft Script Debugger.
When the program hits the exception the script debugger will come up
and show me the line where the error occurred.
You can inspect variables using my debugger library but it won't let you do
breakpoints or anything like that (there's no way to do that with plain
vanilla javascript):

http://www.depressedpress.com/Conten...ions/DP_Debug/

I find it very useful, I hope youdo as well.

Jim Davis
Oct 4 '06 #3
Okay, for anyone having similar problems. Here is what I have
discovered:

First, the "free" Microsoft script debugger is nearly useless. I will
show you the line where the program threw an exception. You can
inspect variables to a point. You can use the Command window to see if
variables are null or if the variable is a primitive type (number,
string, etc..), but you can't inspect any complex objects. I guess you
can also change the values, but that is about it. I didn't find any
good documentation for this from Microsoft (no surprise there) but the
following link helped out:

Debugging JavaScript in Your Applications:
http://www.codestore.net/store.nsf/u...W?OpenDocument

Second, if you have access to Microsoft Frontpage you can optionally
install the Microsoft Script Editor (MSE). It is also available in
Visual Studio. This is actually a pretty nice debugger once its all
installed. I just think it should be either bundled with IE or
available for a free download.

Microsoft Script Editor:
http://erik.eae.net/archives/2005/07/04/21.49.50/

Third, another useful tool is the LumberJack logger. This is pretty
cool. You will need the prototype library as well, but it is a neat
way to add logging in a way similar to Log4j into your java script.
Beats the heck out of adding a bunch of "alert" statements, and will
even work on an end-user's machine without requiring them to install
additional software. It also works in both Firefox and IE.

LumberJack: http://gleepglop.com/javascripts/logger/

If you have read this far, I'll give you another couple of pieces of
advise on debugging javascript. I have found using a combination of
tools for both FireFox and IE seems to be the best approach. Both
systems have their advantages and disadvantages, but The following set
of tools seem to work pretty well when used in combination. I have
also found that, even though my company only "officially " supports IE,
my javascript is more stable if I build for BOTH IE and FireFox. It is
more work, but it pays off in the end.

First, for IE get the Microsoft Web Developers toolbar. It allows you
to inspect the entire DOM and has some useful tools like a ruler and
such...

Microsoft Web Developers Toolbar:

http://javascript.weblogsinc.com/200...oolbar-for-ie/

For Firefox, you should get the Firebox debugger. It is the
counterpart to the Microsoft Script Editor.

Firebug:
https://addons.mozilla.org/firefox/1843/

Also use the FireFox DOM inspector:
FireFox DOM Inspector:
http://www.mozilla.org/projects/inspector/

Finally, in case you are interested, there is a slight difference
between how the 2000 version of Javascript was passing variables to
anoymous functions during an AJAX request call and the XP version.
Once I realized the problem it took me a very short amount of time to
fix. It tooks me a while to figure out the actual cause of the problem
because it was a couple of levels up the call stack and without a
descent debugger it took a lot of time to run down.

-alan

Oct 4 '06 #4
Thanks to both Jim Davis and Patient Guy for your help. I appreciate
it very much.
-alan

Jim Davis wrote:
<ar*****@gmail. comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .
I have a javascript program that works fine under Firefox and on IE
when running XP, but is having a problem with IE running under Windows
2000 Pro.

On my personal XP development machine I have the Microsoft Script
Editor and I can set a breakpoint, step through code, inspect
variables, etc... with no problem.

On a machine where I am trying to debug this problem I am running
Windows 2000 Pro with IE 6. I installed the Microsoft Script Debugger.
When the program hits the exception the script debugger will come up
and show me the line where the error occurred.

You can inspect variables using my debugger library but it won't let you do
breakpoints or anything like that (there's no way to do that with plain
vanilla javascript):

http://www.depressedpress.com/Conten...ions/DP_Debug/

I find it very useful, I hope youdo as well.

Jim Davis
Oct 4 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2759
by: Katie M | last post by:
Hi, I'm running into a problem where the Microsoft Script Debugger is no longer starting up when it encounters an error or breakpoint. It used to prompt whenever it encountered an error, but is no longer doing so. It doesn't prompt to debug when it encounters an error. It doesn't open when I use the "STOP" command in my VBScript. It doesn't open when I select View|Script Debugger|Open from the IE menu. It just doesn't open. The only...
1
3383
by: John H. | last post by:
I installed the Microsoft Script Debugger and set the "Enable Script Debug" flag on in IIS. Also, I made sure that the "Disable Script Debug" flag was off in Internet Explorer. Everything ran fine for about two months; the Debugger was getting control. Then, all of a sudden, it has stopped getting control. I checked the settings above and they still OK. Anybody can tell me why the Debugger is not getting control? Should I report this...
5
3134
by: Vilmar Brazão de Oliveira | last post by:
HI there, Does anybody know why Microsoft Script Encoder can not encript(encode) all the page including html, js, vbs and asp parts? - In asp case only encoded the asp part. Page.asp - In html case only encoded script part(js and vbs). Page.htm It follows the page.htm: <html> <head> <title>Entretenimento</title>
2
2193
by: Steve Anderson | last post by:
Please excuse my ignorance as I'm fairly new to ASP. We have IIS running on Win2000 and serving out an ASP application. I installed the script debugger tonight. IE6 on the machine has Disable Script Debugging unchecked. I set the server side debugging for the www in question. I have a Stop statement in the VBScript code in a certain page, and yet the debugger does not stop on the page in question, it does nothing. If I open up the .asp...
5
1414
by: cyaron | last post by:
Hi, I would like to ask for your help I would like to download debugger for javascript. Since I works only with IE I thought of trying using the Microsoft Script Debugger. I found the following URL
1
1635
by: Dennis | last post by:
I have installed Microsoft Script Debugger. But when I select the Running Documents option from the view menu, there is nothing but an empty window displayed. I wish to debug ASP pages. So I was expecting to find a Microsoft Active Server Pages node, from which
2
2170
by: Andrew Taranov | last post by:
Hi! I've got a problem attaching the Script Debugger to ASP pages under IIS6. Set up everything following IIS6 documentation: turned on ASP debug in IIS Manager; edited permissions for Machine Debug Manager in the DCOM configuration, giving Launch and Activate permissions to Network Service (which is the account for the corresponding process pool).
2
4171
by: Atul | last post by:
Hi, How can I "disable script debugger" programmatically using C#? Its similar action when we check the check box from IE (Tools | Internet Options...| Advanced). Any ideas??? Thanks Atul
2
3545
by: Bruce Johnson | last post by:
Two issues. Using IE 6 (all patches) over XP Pro (all patches) along with mse7.exe (Microsoft script editor) from Office 2003. I can get HTML pages etc into the editor with no problems. I want to do javascript interactive debugging just like I do with VBA in Word etc. I set a breakpoint in the js function then run. I get the IE window with the Information Bar claiming it's blocking active content. Everything's run on my local machine;...
0
8380
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8816
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8710
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8497
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7310
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2721
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1928
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.