The following editors support debugging active script:
- Page Designer
- the HTML Source Page Editor
- the JavaScriptâ„¢ Editor
In order to add active script breakpoints, you must use one of the
preceding editors when you are debugging or preparing to debug active script.
When
you launch an active script debug session, the source editor that opens by
default depends on the file type that is opened:
File type |
Default editor |
HTML (.htm or .html) |
Page DesignerNote: - If a stack frame is selected, the HTML Source Page Editor opens.
- When debugging JSP-generated HTML or an HTML page that was navigated to
by form submission, the filename of the source is not available to the Active
Script debugger. In this case, the debugger creates a temporary cached source
file and the editor does open to display source. If you have previously-set
breakpoints in the source of these pages (located in the workbench workspace),
these breakpoints cannot be installed by the debugger. To be able to set a
breakpoint in this source, suspend (or halt) the debug session before invoking
the script that you want to debug. While the debug session is suspended, you
can set non-persistent breakpoints for the page. For information about non-persistent
breakpoints (or breakpoints that are set in the temporary cached source outside
of the workbench workspace), refer to the setting a line breakpoint topic.
|
JSP (.jsp) |
Page DesignerNote: - If a stack frame is selected, the HTML Source Page Editor opens.
- When debugging a JSP page, the filename of the source is not available
to the Active Script debugger. In this case, the debugger creates a temporary
cached source file and the editor does open to display source. If you have
previously-set breakpoints in the source of these pages (located in the workbench
workspace), these breakpoints cannot be installed by the debugger. To be able
to set a breakpoint in this source, suspend (or halt) the debug session before
invoking the script that you want to debug. While the debug session is suspended,
you can set non-persistent breakpoints for the page. For information about
non-persistent breakpoints (or breakpoints that are set in the temporary cached
source outside of the workbench workspace), refer to the setting a line breakpoint
topic.
|
JavaScript (.js) |
JavaScript Editor |
VisualBasic (.vbs) |
HTML Source Page Editor |
In the editors, you can perform various debug actions by way of
pop-up menu. You will want to set a different editor for debugging script
for the following reasons:
- You want to set the HTML Source Page Editor as the editor for VisualBasic
script. Without this file association, you might not be able to add Active
Script breakpoints for VisualBasic script.
- The preceding default editors do not open by default for your debug session
(for example, their file association has been manually changed) and you want
to set them to open by default.
To set a specific editor to open for a file type:
After completing the preceding steps, when you open the file type
to view its source, the selected editor will be used.