# 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

Debugger
Remote debugging
Local debugging

### Related tasks

Changing debugger launch options
Running and debugging

### Related references

Debug preferences
Debug view
Run Menu