- Starting a Debugging Session
- Attaching the Debugger to a Running Application
- Starting the Debugger Outside of the Project's Main Class
- Stepping Through Code
- Setting Breakpoints
- Managing Breakpoints
- Customizing Breakpoint Behavior
- Monitoring Variables and Expressions
- Backing Up from a Method to Its Call
- Monitoring and Controlling Execution of Threads
- Fixing Code During a Debugging Session
- Viewing Multiple Debugger Windows Simultaneously
Starting the Debugger Outside of the Project's Main Class
If you have multiple executable classes in your project, there might be times when you want to start the debugger from a class different from the one that is specified as the project's main class.
To start the debugger on a class other than the project's main class, right-click the file's node in the Projects window or Files window and choose Debug File.
You can start the debugger on a file only if it has a main method.