Netscape JavaScript Debuger.pdf
(
244 KB
)
Pobierz
179068541 UNPDF
Getting Started with Netscape
JavaScript Debugger
Document last modified: 12/12/97.
This document gives a brief introduction to Netscape JavaScript Debugger 1.1.
JavaScript is a cross-platform, object-based scripting language. This version of
Netscape JavaScript Debugger allows you to debug client-side JavaScript code.
The debugger cannot be used to debug server-side JavaScript, Java, or HTML.
Netscape JavaScript Debugger requires Netscape Communicator 4.02 or later.
The debugger cannot be used with other browsers.
Note
When you’re stopped in Netscape JavaScript Debugger, you cannot use many
features of Communicator. In particular, you cannot use Navigator to browse
web pages. For this reason, it is recommended that you download the PDF
version of this document before starting the debugger. You can then either
print that document or view it online with Acrobat Reader.
What’s in this document:
Section
Starts on page
Starting the Debugger
page 2
Understanding the Windows
page 3
Opening a page to debug
page 13
Working with Interrupts
page 14
Working with Breakpoints
page 15
Working with Watches
page 19
Executing Code
page 23
Displaying line numbers
page 25
Clearing the Console Window
page 25
Manually adjusting source lines
page 26
Error Reporter Dialog
page 26
Getting Started with Netscape JavaScript Debugger
1
Starting the Debugger
Starting the Debugger
The end of the installation process automatically runs the debugger. After that
first time, you run the debugger by opening the appropriate page in Navigator.
On Windows 95/NT, that page is:
[your Communicator install directory]\Program\JSDebug\JSDebugger.html
Here,
[your Communicator install directory]
is the directory in which
Communicator is installed. For example, if you installed it in
c:\Program Files\Netscape\Communicator\
, then the start page for
Netscape JavaScript Debugger would be:
c:\Program Files\Netscape\Communicator\Program\JSDebug\JSDebugger.html
On other platforms, that page is:
[your Communicator install directory]\JSDebug\JSDebugger.html
For future convenience, the first time you use the debugger, you should add
the
JSDebugger.html
page to your bookmarks or to your personal toolbar in
Navigator.
Note
Several security dialog boxes are displayed the first time you run the debugger.
You must grant the security privileges the debugger requests in order for it to
function correctly.
2
Getting Started with Netscape JavaScript Debugger
Understanding the Windows
Understanding the Windows
The primary configuration of the JavaScript debugger windows is shown in
Figure 1
.
Figure 1 JavaScript debugger configuration
The debugger window has a menu bar, a toolbar and (once you’ve opened an
HTML page) three panes. A Source View window is at the top; the Call Stack is
below the Source View and on the left; and the Console is below the Source
View and on the right.
Getting Started with Netscape JavaScript Debugger
3
Understanding the Windows
While stopped in the debugger, you can use commands from the Windows
menu open the Object Inspector, Breakpoint, and Watches windows.
Where To Find Commands
There are three common places to access the debugger’s commands: the menu
bar, the toolbar, and the right-click menu in a Source View window.
Most of the items that occur on menus also occur on the toolbar. In addition, if
you right-click in a Source View window over selected text, a menu of common
commands appears. These commands are also available on the menus and
some are on the toolbar.
Where applicable, the instructions in this document tell you how to use the
toolbar and the individual panes to access the debugger’s functionality. You
can also choose menu items (either from the menu bar or from the right-click
menu) for these tasks. When there is no button for a task, the menu item on the
menu bar is described.
4
Getting Started with Netscape JavaScript Debugger
Understanding the Windows
Source View Windows
The JavaScript debugger creates a separate Source View window, as shown in
Figure 2,
for each HTML page you open in the debugger. (See
“Opening a page
to debug” on page 13
for information on how you can open a page.)
Figure 2 Source View window
Each Source View window contains the source of an HTML page. When
execution stops in the debugger, the Source View window containing the
currently executing HTML page is brought to the surface.
Source View windows use colors and icons in the left margin to indicate the
following information:
• A dark arrow indicates a currently executing line
• Orange bars to the left indicate function bodies
• Yellow bars to the left indicate top-level scripts
• Red dots indicates lines for which unconditional breakpoints have been set
• Orange dots indicate lines for which conditional breakpoints have been set
Getting Started with Netscape JavaScript Debugger
5
Plik z chomika:
mgram
Inne pliki z tego folderu:
Java Script.doc
(5312 KB)
JavaScript Reference.pdf
(4153 KB)
Writing Server-Slide JavaScript Application.pdf
(2219 KB)
Java Script Guide.pdf
(1375 KB)
Dynamic HTML.pdf
(1011 KB)
Inne foldery tego chomika:
Java i XML
Java Script - Receptury
Java Server Programming
Java.i.XML
JavaScript - Cwiczenia praktyczne
Zgłoś jeśli
naruszono regulamin