Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Web Tools Guide
Previous Page Home Next Page

Debugging a JSP file on a server

The debugger enables you to detect and diagnose errors in your application. It allows you to control the execution of your program by setting breakpoints, suspending threads, stepping through the code, and examining the contents of the variables. You can debug a JavaServer Pages (JSP) without losing the state of your application.

To debug a JSP file on a server:
  1. In the Project Explorer view, open your JSP file. In a Web project, JSP files are located in the Web Content folder. Double-click the JSP file, the file opens in an editor.
  2. To set one or more breakpoints, you can select a line of code in the editor and double-click the marker bar directly to the left of the line where you want to add the breakpoint.
  3. From the JSP file's context menu in the Project Explorer view, click Debug As> Debug on Server. The workbench switches to the Debug perspective and the server is launched in debug mode.
  4. In the Debug view, step through the code and make the necessary changes to the JSP file. For detailed information on debugging, refer to the Debugging Java™ applications documentation.
  5. Save the JSP file.
  6. Click the Refresh icon in the Web Browser to update the changes. The state of your application is not lost and the server recognizes your changes.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire