Preparing to debug
You can make your programs easier to debug by following these guidelines:
-
Where possible, do not put multiple statements on a single line, because some debugger features operate on a line basis. For example, you cannot step over or set line breakpoints on more than one statement on the same line.
-
Attach source code to JAR files if you have the source code.
Debugger
Remote debugging
Local debugging
Changing debugger launch options
Running and
debugging
Debug preferences
Debug view
Run and debug actions