This section describes the procedures that are common for various types of applications.
For details related to debugging applications in the supported frameworks, refer to Language and Framework-Specific Guidelines
To debug an application, perform the following general steps
- Configure the dependencies and libraries to be passed to the compiler and generate the debugging information.
- Configure common debugger behavior, including stepping speed, class reloading policy, or scrolling of the editor canvas.
- Configure debugger options.
To debug CoffeeScript, TypeScript, and Dart code,
otherwise your breakpoints will not be recognised and processed correctly.
- Define a run/debug configuration for the application to be debugged.
- Create breakpoints in the source code.
- Launch a debugging session.
- Pause or resume the debugging session as required.
- During the debugger session, step through the breakpoints, evaluate expressions, change values on-the-fly , examine suspended program, explore frames, set watches , reload classes, and customize views .
Note that IntelliJ IDEA lets you debug decompiled code in the same way as your normal source files, provided that it contains line number attributes.