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.
![Related concepts](../images/ngrelc.png)
Debugger
Remote debugging
Local debugging
![Related tasks](../images/ngrelt.png)
Changing debugger launch options
Running and debugging
![Related reference](../images/ngrelr.png)
Debug preferences
Debug view
Run Menu