If you have an HTML page loaded with your example, you won’t see much happen as this is for timer-looped code. Stop Debugging-Yes, this will stop the debugging process, and applications that are running in memory will cease.Run-This allows you to execute your code from the beginning.The Edit section is also familiar as it offers the basic options of Cut, Copy, and Paste, as well as selecting all and searching through the code that is currently highlighted. The File section is self explanatory as if offers the common Windows file operations. The debug toolbar consists of three sections: File, Edit, and Debug. MSD helps you discover errors in scripts. When you load the script, you’ll see the screen shown in Figure D. Once the debug application has started, you can use the File menu to open an existing document that contains the script to be examined, or use the Running Documents toolbar icon to get a list of currently active application scripts. Click Start | Programs | Accessories | Microsoft Script Debugger | Microsoft Script Debugger to start the debugger for your script. If you’re looking at ASP code on the server side, you’ll need to launch the debugger from the Start button. Your HTML and script code will load into a window in the debugger application. This will load the current HTML page into the debugger application. To run the debugger on the client system, select View | Script Debugger | Open in IE. On the server side, after you enable debugging for the application, you’ll open the debugger from the Start menu. On the client side, you can launch the debugger from within IE’s View toolbar, either automatically by using code keywords or by a debug prompt from broken code. The other is by using server-side ASP and your global.asa file, which I’ll explain below. These options are located in the IIS MMC of the Web site in which you want to enable debugging. Follow the Windows Components Wizard as shown in Figure A. Select Add/Remove Programs and then click Add/Remove Windows Components. For Windows 2000 and XP, you can install the MSD from the Control Panel. You can download both versions from MSDN online. For 98/ME, you’ll need to download the software from Microsoft. There are two versions of MSD available for the Windows operating systems: one for Windows 98/ME and one for NT4, 2000, and XP. After you’ve tested your scripts in a test environment, you can move them to production. Leaving them unprotected could create a security hole for your applications. Also, you’ll want to use passwords to protect the sites that you send ASP-client debug information to. Script debugging adds overhead to the server, which you don’t need. You should test scripts on a test server and not on a production site. It’s also possible to use MSD to debug HTML and XML, however I’ve found that the HTML debugger in Mozilla ( is better adapted to that chore. With some add-ons, you can debug PerlScript and Jscript. You can create input variables at these stop points or prior to the initialization of the script. You can also make the script pause to see where it waits for debugger input. Using keywords in your scripts, you can control the speed at which your script runs, depending on the type of script you use. This will allow you to produce better scripts and it will give you a better understanding of the underlying system and how user input can affect your scripting.īut that’s not all MSD does. Within IE and IIS, you can use MSD to browse your source code, edit the code, and debug HTML that contains scripts on both the client and server side. The main question that MSD helps to answer is “Why isn’t my script working?” Or, more precisely, “On what line is it not working?” If MSD could answer the question fully, there wouldn’t be a need for programmers-computers could fix themselves, and we could all go on vacation. If you’re dealing with the basic installation on a Windows workstation running IE, you’ll need to install it via a download, which I’ll explain below. If you’ve installed IIS on your server, the script debugger is an option that Setup installs automatically. If you’re familiar with debuggers, you might have a good understanding of what this will give you in your programmer’s bag of tricks. MSD is a debug environment that allows you to walk through code that is currently running on the system. In this Daily Drill Down, I’ll walk through the installation and basic functions of MSD. MSD is a debugging application that works with any application that utilizes ActiveX, such as Internet Explorer (IE), Internet Information Server (IIS), or even Excel and Word. The Microsoft Script Debugger (MSD) lets you look at Web-based code to find errors and determine optimizations. Learn how to install and use the Microsoft Script Debugger by following the steps described in this article and a sample debugging of a VBSCRIPT. Test your Web scripts using the Microsoft Script Debugger
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |