1.1 --- a/visualweb.ravehelp.rave_nbpack/javahelp/org/netbeans/modules/visualweb/ravehelp/rave_nbpack/docs/web/debug/about_debug.html Wed Apr 15 11:20:36 2009 +0200
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,52 +0,0 @@
1.4 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1.5 -<!--
1.6 - * Copyright © 2008 Sun Microsystems, Inc. All rights reserved.
1.7 - * Use is subject to license terms.
1.8 --->
1.9 -
1.10 -<html>
1.11 -<head>
1.12 -<meta http-equiv="content-type" content="text/html; charset=UTF-8">
1.13 -<meta name="lastupdated" content="3Jul07">
1.14 -<!-- p2 -->
1.15 -
1.16 -<title>About Debugging and Testing Web Applications</title>
1.17 -<link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
1.18 -</head>
1.19 -<body>
1.20 -
1.21 -
1.22 -<h2>About Debugging and Testing Web Applications</h2>
1.23 -<p><small>
1.24 -<a href="#seealso">See Also</a>
1.25 -</small></p>
1.26 -<p>At the end of the development cycle, you need to debug and test your web application.
1.27 -The IDE has a number of features that help you to do so. The following are the most
1.28 - important ones:
1.29 -<ul>
1.30 -<li>Detection of syntax problems in JSP files during <a href="../create/jsp/jsp_compile.html">compilation</a>.</li>
1.31 -<li><a href="../create/jsp/jsp_servletview.html">Viewing</a> the translated servlet after deployment.</li>
1.32 -<li><a href="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/junit/junit_about.html">JUnit testing</a>.</li>
1.33 -<li>Using the debugger to <a href="debug_webapp.html">debug</a> web applications, JSP files, and servlets.</li>
1.34 -<li>Using the profiler to <a href="profile_webapp.html">profile web application</a> performance and check for memory leaks.</li>
1.35 -<li>Monitoring by means of the <a href="nbdocs://org.netbeans.modules.web.monitor/org/netbeans/modules/web/monitor/docs/monitor/ctx_monitorintro.html">HTTP Monitor</a>.
1.36 - When you run web applications, JSP files, or
1.37 - servlets, the HTTP Monitor can gather data about HTTP requests that the servlet
1.38 - engine processes. For each HTTP request that the engine processes, the monitor
1.39 - records data about the incoming request, the data states maintained on the server,
1.40 - and the servlet context. You can view data, store data for future sessions,
1.41 - and replay and edit previous requests.</li>
1.42 - <li><a href="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/project/proj_webfree_debug.html">Writing a target</a> to debug and test free-form web projects.
1.43 - </ul>
1.44 -
1.45 -<dl>
1.46 -<dt><a name="seealso">See Also</a></dt>
1.47 -<dd><a href="../about/about_webapps.html">About Web Applications</a></dd>
1.48 -<dd><a href="../deploy/deploy_webapp.html">Deploying a Web Application</a></dd>
1.49 -<dd><a href="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/project/proj_webfree_debug.html">Creating A Debug Target for a Free-Form Web Project</a></dd>
1.50 -</dl>
1.51 -
1.52 -<hr>
1.53 -<small><a
1.54 -href="../../credits.html">Legal Notices</a> </small>
1.55 -</body></html>
2.1 --- a/visualweb.ravehelp.rave_nbpack/javahelp/org/netbeans/modules/visualweb/ravehelp/rave_nbpack/docs/web/debug/debug_webapp.html Wed Apr 15 11:20:36 2009 +0200
2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2.3 @@ -1,71 +0,0 @@
2.4 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2.5 -<!--
2.6 - * Copyright � 2008 Sun Microsystems, Inc. All rights reserved.
2.7 - * Use is subject to license terms.
2.8 --->
2.9 -
2.10 -<html>
2.11 -<head>
2.12 -<meta http-equiv="content-type" content="text/html; charset=UTF-8">
2.13 -<meta name="lastupdated" content="3Jul07">
2.14 -<!-- p2 -->
2.15 -
2.16 -<title>Debugging a Web Application</title>
2.17 -<link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
2.18 -</head>
2.19 -<body>
2.20 -
2.21 -
2.22 - <h2>Debugging a Web Application</h2>
2.23 -<p><small>
2.24 -<a href="#seealso">See Also</a>
2.25 -</small></p>
2.26 -<p>You can use the <a href="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/debug/debug_about.html">Sun Microsystems JPDA debugger</a>
2.27 - from the IDE to debug <a href="../about/about_webapps.html">web applications</a>,
2.28 -<a href="../create/servlet/about_servlet.html">servlets</a>, and <a href="../create/jsp/about_jsp_syntax.html">JSP files</a>.
2.29 - Just as with Java programs, the IDE enables you to set new watches, evaluate
2.30 - a variable by holding the cursor over the variable, and set breakpoints in JSP
2.31 - files, JSP documents, and JSP segments. A <a href="../create/tag/tagfile/about_tagfile.html">tag file</a> is debugged when you
2.32 - debug the JSP file that references it.</p>
2.33 -<p>The method that you use to start a debugging session depends on the type of web
2.34 -component that you want to debug.</p>
2.35 -<b>To debug a web application:</b>
2.36 -<ol>
2.37 - <li>Set breakpoints and watches in the web application's JSP files, servlets, and other source files.</li>
2.38 - <li>If necessary, <a href="../create/jsp/jsp_queryparams.html">specify request parameters</a>
2.39 - in the JSP files and servlets.</li>
2.40 - <li>Right-click the project node in the Projects window and choose
2.41 - Debug from the pop-up menu.</li>
2.42 -</ol>
2.43 -
2.44 -<b>To debug a JSP file:</b>
2.45 -<ol>
2.46 - <li>Set breakpoints and watches in the JSP file and, optionally, its tag files.</li>
2.47 - <li>If necessary, <a href="../create/jsp/jsp_queryparams.html">specify request parameters</a>
2.48 - in the JSP file.</li>
2.49 - <li>Right-click the JSP file's node
2.50 - and choose Debug File. Optionally, choose Debug > Debug <i>file.jsp</i> (Ctrl-Shift-F5) from the main menu.
2.51 - <p>When you change a JSP file while in a debugging session, you do not need
2.52 - to start a new debugging session. Just reload the page.</p>
2.53 - </li></ol>
2.54 -
2.55 -<b>To debug a servlet:</b>
2.56 -<ol>
2.57 - <li>Set breakpoints and watches in the servlet.</li>
2.58 - <li>If necessary, <a href="../create/jsp/jsp_queryparams.html">specify request parameters</a>
2.59 - in the servlet.</li>
2.60 - <li>Right-click the servlet's node and choose Debug File. Optionally, choose
2.61 - Debug > Debug <i>file.java</i>
2.62 - (Ctrl-Shift-F5) from the main menu.</li>
2.63 -
2.64 -<dl>
2.65 -<dt><a name="seealso">See Also</a></dt>
2.66 -<dd><a href="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/debug/debug_remote.html">Starting a Remote Debugging Session</a></dd>
2.67 -<dd><a href="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/debug/debug_local.html">Starting a Local Debugging Session</a></dd>
2.68 -<dd><a href="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/project/proj_webfree_debug.html">Creating A Debug Target for a Free-Form Web Project</a></dd>
2.69 -</dl>
2.70 -
2.71 -<hr>
2.72 -<small><a
2.73 -href="../../credits.html">Legal Notices</a> </small>
2.74 -</ol></body></html>
3.1 --- a/visualweb.ravehelp.rave_nbpack/javahelp/org/netbeans/modules/visualweb/ravehelp/rave_nbpack/docs/web/debug/profile_webapp.html Wed Apr 15 11:20:36 2009 +0200
3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
3.3 @@ -1,98 +0,0 @@
3.4 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3.5 -<!--
3.6 -* Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
3.7 -* Use is subject to license terms.
3.8 --->
3.9 -<html>
3.10 -<head>
3.11 -<meta http-equiv="content-type" content="text/html; charset=UTF-8">
3.12 - <title>Profiling a Web Application</title>
3.13 -<link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
3.14 - </head>
3.15 - <body>
3.16 - <h2>Profiling a Web Application</h2>
3.17 - <p><small><a href="#seealso">See Also</a></small></p>
3.18 -<p>There are two ways to profile a web application project:</p>
3.19 -<ul>
3.20 - <li>As a stand-alone web application project</li>
3.21 - <li>As part of an enterprise application</li>
3.22 -</ul>
3.23 -<p>If your web application is part of an enterprise application, you should always
3.24 - profile it by running the profile command on the enterprise application project.
3.25 - Since the IDE does not know which enterprise applications a web application project
3.26 - belongs to, running the Profile command on a web application project deploys it
3.27 - as a stand-alone application.</p>
3.28 -
3.29 - <p>If you are deploying your web application or enterprise application to a local installation
3.30 - of the Glassfish application server, you can profile your project by
3.31 - choosing Profile Main Project from the main menu or choosing Profile from the pop-up menu in the
3.32 - Projects window.</p>
3.33 -
3.34 - <p>If you are deploying your web application or enterprise application to a remote server,
3.35 - you need to attach the IDE to the remote server and profile the application in Attach mode.
3.36 - The Attach Wizard can help you configure the remote server to accept attachment.</p>
3.37 -
3.38 -<p><b>To profile a stand-alone web application:</b></p>
3.39 -<ol>
3.40 - <li>In the Projects window, right-click the web application project and choose Profile. </li>
3.41 - <li>Select a profiling task and click Run.</li>
3.42 -</ol>
3.43 -<p>When you profile a stand-alone web application project, the IDE does the following:</p>
3.44 -<ul>
3.45 - <li>Compiles the web application if necessary.</li>
3.46 - <li>Stops the application server and starts it in profile mode.</li>
3.47 - <li>Deploys the web application to the application server.</li>
3.48 - <li>Starts a profiling session, attaches the profiler to the server, and opens the Profiler window in the IDE.
3.49 - After the application is deployed to the server, you should invoke its code the same way as you would for debugging or
3.50 - just evaluating application functionality.
3.51 - You can view the profiling data once the code of the application is invoked.</li>
3.52 -</ul>
3.53 -<p><b>To profile an enterprise application:</b></p>
3.54 -<ol>
3.55 - <li>In the Projects window, right-click the enterprise application project and choose Profile.</li>
3.56 - <li>Select a profiling task and click Run.</li>
3.57 -</ol>
3.58 -
3.59 -<ul class="note">
3.60 - <li>If you are analyzing application performance, you may want to choose the Profile Projects &
3.61 - Subprojects Classes filter if you want to profile the classes in your web application and
3.62 - also any sub-projects, such as any EJB modules. If you do not choose this filter, the classes in
3.63 - the EJB module are not profiled.
3.64 - <p>You can limit the classes in the enterprise application that are profiled by doing the following:</p>
3.65 - <ol>
3.66 - <li>In the Analyze Performance pane, choose the Profile Projects &
3.67 - Subprojects Classes filter and then click Show Filter Value.</li>
3.68 - <li>Click to Quickfilter in the dialog box.</li>
3.69 - <li>In the Set Quick Filter dialog, select a filter type and edit the filter values
3.70 - to limit the classes that are profiled and click OK.</li>
3.71 - <li>Make sure that Quick Filter is selected in the Filter drop-down list when you run the profiling session.</li>
3.72 - </ol></li>
3.73 -</ul>
3.74 -
3.75 -<p>When you profile an enterprise application, the IDE does the following:</p>
3.76 -<ul>
3.77 - <li>Compiles the EAR file if necessary.</li>
3.78 - <li>Stops the application server and starts it in profile mode.</li>
3.79 - <li>Deploys the enterprise application to the application server.</li>
3.80 - <li>Starts a profiling session, attaches the profiler to the server, and opens
3.81 - the Profiler window in the IDE. If the application has
3.82 - a designated web application and URL to run, the IDE opens the URL in the
3.83 - external browser.</li>
3.84 -</ul>
3.85 -
3.86 -
3.87 - <dl>
3.88 - <dt><a name="seealso">See Also</a></dt>
3.89 - <dd><a href="nbdocs://org.netbeans.modules.profiler/org/netbeans/modules/profiler/docs/helppages/profile_quickref.html">Profiling Tasks: Quick Reference</a></dd>
3.90 - <dd><a href="nbdocs://org.netbeans.modules.profiler/org/netbeans/modules/profiler/docs/helppages/custom_filtersets.html">Setting Profiling Filters</a></dd>
3.91 - <dd><a href="nbdocs://org.netbeans.modules.profiler/org/netbeans/modules/profiler/docs/helppages/profile_remote.html">Profiling a Remote Application</a></dd>
3.92 - <dd><a href="nbdocs://org.netbeans.modules.profiler/org/netbeans/modules/profiler/docs/helppages/profile_windows.html">Profiling Windows</a></dd>
3.93 - <dd><a href="nbdocs://org.netbeans.modules.profiler/org/netbeans/modules/profiler/docs/helppages/profile_tasks_overview.html">Selecting a Profiling Task</a></dd>
3.94 - </dl>
3.95 - <hr>
3.96 - <small><a href="../../credits.html">Legal Notices</a></small>
3.97 - <table border="0" cellpadding="50">
3.98 - <tr><td> </td></tr>
3.99 - </table>
3.100 - </body>
3.101 -</html>