To debug your application, use a development environment like Application Server Toolkit or Rational Application Developer to create a Java project. You must then import the program that you want to debug into the project. By following the steps below, you can import the WebSphere Application Server examples into a Java project.
Two debugging styles are available:
Prompts you whenever the server calls a method on a Web object. A dialog lets you step into the method or skip it. In the dialog, you can turn off step-by-step mode when you are finished using it.
Debug specific parts of programs. Add breakpoints to the part of the code that debug and run the program until one of the breakpoints is encountered.
Breakpoints actually work with both styles of debugging. Step-by-step mode just lets you see which Web objects are being called without having to set up breakpoints ahead of time.
You do not need to import an entire program into your project. However, if you do not import all of your program into the project, some of the source might not compile. You can still debug the project. Most features of the debugger work, including breakpoints, stepping, and viewing and modifying variables. You must import any source that you want to set breakpoints in.
The inspect and display features in the source view do not work if the source has build errors. These features let you select an expression in the source view and evaluate it.
File | Import | File System | Next
app_server_root/installedApps/node/DefaultApplication.ear/DefaultWebApplication.war
Select Properties from the right-click menu. Choose the Java Build Path node and then select the Libraries tab. Click Add External JARs to add the following JAR files:
When you have added this JAR file, select it and use the Attach Source function to attach the Increment.jar file because it contains both the source and class files.
Click OK when you have added all of the JARs.
Window | Open Perspective | Debug
You can also enable the debug launch in the Java Perspective by choosing...
Window | Customize Perspective
...and selecting the Debug and Launch checkboxes in the Other category.
Help | Help Contents | Debugger Guide bookshelf entry
To learn about known limitations and problems that are associated with the Application Server Toolkit, see the Application Server Toolkit release notes.
For current information available from IBM Support on known problems and their resolution, see the IBM Support page.
IBM Support has documents that can save you time gathering information needed to resolve this problem. Before opening a PMR, see the Must gather documents page for information to gather to send to IBM Support.
Searchable topic ID: ttrb_debugwsa