IntelliJ IDEA 2021.2 Help

List of run/debug configuration templates

This page lists run/debug configuration templates available in IntelliJ IDEA. For detailed instructions on how to use them in your project, refer to the related how-to pages.

This page only covers the standard set of run/debug configurations for IntelliJ IDEA Community and Ultimate, and some of the non-bundled JVM plugins. For other languages, like JavaScript, see the documentation for the related products (for example, Webstorm). Third-party and non-bundled plugins are out-of-scope for this documentation.

NameUse it toRequired plugins
AmmoniteRun Scala scripts using Ammonite, which is a modernized version of Scala REPL. For more information, refer to the Ammonite section.Scala
AntRun an Ant target.Ant
ApplicationCompile your Java application with javac and run it with java.
Attach to Node.js/Chrome (Ultimate)Attach to and debug already running Node.js applications.Node.js
Cucumber JavaRun features or scenarios via the cucumber.cli.main class.Gherkin, Cucumber for Java
CompoundRun several run/debug configurations in parallel. This is useful, for example, if you want to launch various automated tests or client-server apps. The controls for each configuration will be available in a separate tab in the Run or Debug tool window.
DockerfileCreated automatically when you run a container from a Dockerfile. This configuration builds an image from the Dockerfile, and then derives a container from this image.Docker
Docker ImageCreated automatically when you run a container from an existing image. You can run it from a locally existing Docker image that you either pulled or built previously.Docker
Docker ComposeCreated automatically when you run a multi-container Docker application from a Docker Compose file.Docker
GlassFish Server (Ultimate)Deploy and debug your applications on GlassFish Server.GlassFish
GradleRun Gradle tasks.Gradle
GrailsRun and debug the Grails applications, tests and Web tests.Grails
GroovyRun and debug Groovy scripts. For more information, refer to the Groovy section.Groovy
Grunt.jsRun and debug Grunt.js tasks.
Gulp.jsRun and debug Gulp.js tasks.
HTTP Request (Ultimate)Execute HTTP Requests directly in the IntelliJ IDEA either individually or as part of a compound run/debug configuration.HTTP Client
JAR

Run and debug applications started via java -jar<name>.jar command. IntelliJ IDEA does not build the JAR by default. To include the build process as a step, add a Before Launch task.

Tutorial: Create your first Java application.

Java ScratchRun and debug Java scratch files that have the main() method defined.
JavaScript DebugDebug JavaScript in applications running on the built-in or on an external web server and to debug Dart web applications.JavaScript Debugger
Jest (Ultimate)Run and debug Jest tests.
Jetty (Ultimate)Deploy and debug your applications on Jetty.Jetty
JSR-45 Compatible Server (Ultimate)Run your applications on JSR45 -compatible application servers.
JUnitConfigure and run unit tests based on the JUnit testing framework.JUnit
Karma (Ultimate)Run and debug JavaScript unit tests using the Karma test runnerKarma
KotlinRun and debug Kotlin applications.Kotlin
Kotlin ScriptRun and debug Kotlin scripts.Kotlin
MavenBuild and launch Maven projectsMaven
Mocha (Ultimate)Run and debug JavaScript unit tests using the Mocha test runnerNode.js
Node.js (Ultimate)Debug Node.js applications.Node.js
Nodeunit (Ultimate)Run and debug unit tests for Node.js applicationsNode.js
NPMRun and debug npm and Yarn scripts locally, that is when IntelliJ IDEA itself starts Node.js installed on your computer and initiates script execution.
PluginRun or debug plugin projects.
Protractor (Ultimate)Run and debug AngularJS unit tests using the Protractor test runner.
React Native (Ultimate)Run and debug React Native applications.
Remote JVM DebugAttach to a remote JVM or listen for incoming connections over a socket or shared memory (Windows). This run/debug configuration represents the debugger end. The host application has to be started separately. For detailed procedures, refer to Attach to process and Tutorial: Remote debug.
Scala REPLEvaluate Scala expressions in the Run tool window. However, the preferred way to invoke Scala REPL is to select Tools | Scala REPL from the main menu. In this case, the run/debug configuration is created automatically and you can modify it as needed.Scala
TestNGLaunch tests that comply with the TestNG framework.TestNG
ScalaTestRun Scala tests and test scopes with ScalaTest, which is the most flexible and most popular testing tool in the Scala ecosystem. For more information, refer to the Scala testing section.Scala
Specs2Run Scala test specifications. For more information, refer to the Scala testing section.Scala
Spring Boot (Ultimate)Run Spring Boot applications. For details, refer to Spring Boot.Spring, Spring Boot
Spy-js (Ultimate)Trace Web applications using the Spy-js tool.Spy-js
Spy-js for Node.js (Ultimate)Trace Node.js applications using the Spy-js tool.Spy-js
Tomcat Server (Ultimate)Deploy and debug your applications on Apache Tomcat.Tomcat and TomEE
TomEE (Ultimate)Deploy and debug your applications on Apache TomEE.Tomcat and TomEE
WebLogic Server (Ultimate)Deploy and debug your applications on Oracle WebLogic Server.WebLogic
WebSphere Server (Ultimate)Deploy and debug your applications on WebSphere Application Server.WebSphere
XSLTRun XSLT scripts.XPathView + XSLT
Last modified: 22 September 2021