IntelliJ IDEA supports debugging for Java and Groovy applications, classes, and files. The debugging functionality is incorporated in IntelliJ IDEA, you only need to configure its settings.
Depending on the plugins enabled, IntelliJ IDEA can also support debugging for other languages, for example, JavaScript , Flex or PHP .
IntelliJ IDEA supports local and remote JavaScript debugging
only in Google Chrome
and other browsers of the Chrome family.
- In the Project Structure dialog box, configure the roots, dependencies and libraries to be passed to the compiler .
-
In the
Settings dialog box, configure the debugger options:
- Under the Build, Execution and Deployment section, point to Compiler node, click Java Compiler, or RMI Compiler, and select the check box Generate debugging info.
- Under the Build, Execution and Deployment, click Debugger, and define the debugger options as required.