Debugging a JSP file on a server

You can use the debugger to detect and diagnose errors in your application. You can 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 Page (JSP) without losing the state of your application.

Procedure

See Debugging a JSP file on a server. In addition, you can set one or more breakpoints by completing the following steps:
  1. Verify that you are using the Source page of the editor. If multiple pages are available for the editor, such as Design, Source, or Preview page, select the Source page. If multiple pages are not available, the editor defaults to a source editor.
  2. Select a line of code in the editor and double-click where you want to add the breakpoint in the area of the marker bar.

Results

Note: If you are running the JSP file on a remote WebSphere® Application Server, the JSP cache directory must be cleared to force the class file to be in the correct JSP source debug mode. If the cache is not cleared, some compiled unchanged JSP files might still be compiled in the previous JSP source debug mode.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tdbgjsp.html