Debugging applications
To debug your application, you must use a development environment like the IBM® Rational® Application Developer for WebSphere® to create a Java™ project. You must then import the program that you want to debug into the project.
About this task
- Step-by-step debugging mode 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.
- Breakpoints debugging mode lets you debug specific parts of programs. Add breakpoints to the part of the code that you must debug and run the program until one of the breakpoints is encountered.
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.