Skip to content

Run Configurations

m0rkeulv edited this page Oct 20, 2026 · 2 revisions

A run configuration tells the IDE how to start a program. This page lists every run configuration type the plugin adds, with its fields and what Run and Debug do. Most of the time you do not create these by hand: the Build & run row of a build file, or the run icon in the gutter of the class the build starts from, creates a matching configuration for you (see Building and Running). Debugger details are on the Debugging pages; start with Debugging Overview.

Creating and editing run configurations

To create one yourself, choose Run | Edit Configurations…, click +, open the Haxe group and pick a type. The same dialog edits existing configurations, including the ones the plugin created.

Configuration What it runs Debug Created by Build & run for
Haxe Action An action of a build file No (created by double-clicking an action instead)
HashLink Application HashLink bytecode with hl Yes HashLink output
HXCPP Application (IntelliJ) A C++ executable Yes C++ executables, from hxml files and from Lime, OpenFL and NME projects
HXCPP Application (vshaxe) A C++ executable Yes -
HXCPP Application (legacy) A C++ executable Yes -
Haxe Interpreter A compilation on the Haxe interpreter (--interp) Yes Interpreter builds (the tool window's Run row)
Haxe Web Browser A web page in a browser Yes JavaScript output
Node.js Application A JavaScript program with Node.js Yes JavaScript output of hxml files
Haxe Flash Application A SWF in a Flash player Yes SWF output
Haxe AIR Application An AIR application with adl Yes The Lime air target
Neko Application Neko bytecode or a Neko launcher No Neko output
Haxe Unit Tests A tests build file, in the test runner Yes -

Haxe Unit Tests is a type of its own; all other types are in the Haxe group.

Common settings

  • Module: Every type except Haxe Unit Tests has this field. The module provides the Haxe SDK and the sources the debugger maps back to. A new configuration starts with the project's first module.
  • Before launch: Configurations created by Build & run compile with a Run Haxe action step. A program configuration you create yourself (every type with a Module: field except Haxe Action) starts with the IDE's standard Build step instead; it runs the module's build command and does nothing for Haxe when the module has none. To build a specific file and action, replace it with Run Haxe action; see The Run Haxe action before-launch step.
  • Paths: A relative path, such as the program file or the working directory, is resolved against the module's folder, or against the project folder when the configuration has no module. Absolute paths, which the browse buttons fill in, always work.

Haxe Action

Runs one action of a build file, built-in or custom, exactly as double-clicking it in the Haxe tool window does. The plugin creates one the first time you run an action from the tool window.

Field Meaning
Module: Limits the Build file: list to this module's build files.
Build file: The build file.
Action: The action's name, for example Build, test or the name of a custom action.
Additional arguments: Arguments added to the end of the action's command.

The configuration stores the build file and the action name. Each run looks up the command again, so the current target, SDK and compilation server settings always apply.

  • Run: runs the action's command; the output appears in the Run tool window. When the action runs other actions first, those run before it in the same console, each announced by a > name: command line, and the first failure ends the run. An action without a command of its own only runs those.
  • Debug: not available. To debug a program, use Build & run or one of the program configurations below.

HashLink Application

Runs HashLink bytecode.

Field Meaning
Module: The module.
Compiled HashLink binary (.hl / hlboot.dat): The bytecode to run: an .hl file, or the hlboot.dat of a packaged Lime build.
Working directory: Empty means the folder of the bytecode file.
Use custom HashLink binary: Run with this HashLink executable instead of the usual one. Build & run sets it for Lime builds, which ship their own copy of the HashLink runtime next to hlboot.dat.

Without a custom binary, the HashLink executable comes from HashLink executable: under Build Tools | Haxe when it is set (the path must exist; nothing else is tried then), else from the Haxe SDK's HashLink executable: setting, else from the HASHLINK_BIN, HASHLINK or HASHLINKPATH environment variable, else from the PATH.

HXCPP Application (IntelliJ)

Runs a C++ executable built with hxcpp. This is the C++ configuration that Build & run creates.

Field Meaning
Module: The module.
Compiled executable: The executable to run. For an hxml build, Build & run sets it to ${executable}, which is worked out at each launch from the build's output folder and main class, including the -debug suffix of a debug build.
Working directory: Empty means the executable's folder.
Program arguments: Arguments passed to the program.

Below the fields, the editor shows whether the intellij-hxcpp-debug-server haxelib is installed, with an Install link when it is not.

  • Run: runs the executable.
  • Debug: the executable must be compiled with -debug and -lib intellij-hxcpp-debug-server. Build & run adds both when you choose Debug. Such a build also runs normally outside the debugger. See Debugging HXCPP.
  • Profile: with IntelliJ IDEA Ultimate, see Profiling HXCPP.

HXCPP Application (vshaxe)

Runs a C++ executable and debugs it with the debug server of the vshaxe project (the hxcpp-debug-server haxelib).

Field Meaning
Module: The module.
Compiled executable: The executable to run.
Working directory (empty = executable directory): Where the program runs.
Program arguments: Arguments passed to the program.
Debug host (must match -D HXCPP_DEBUG_HOST): Defaults to 127.0.0.1.
Debug port (must match -D HXCPP_DEBUG_PORT): Defaults to 6972.

The editor shows whether the hxcpp-debug-server haxelib is installed, with an Install link when it is not.

  • Run: runs the executable.
  • Debug: the executable must be compiled with -debug and -lib hxcpp-debug-server. A Run Haxe action step adds both when you choose Debug. A build with this library waits for a debugger when you run it normally, so use a build without it for Run. See Debugging HXCPP.

HXCPP Application (legacy)

The C++ configuration of plugin version 1.x, for programs built with the older debugger haxelib. C++ run configurations from 1.x projects become this type; see Migrating from 1.x. For new projects, use HXCPP Application (IntelliJ).

Field Meaning
Module: The module.
Executable: The executable to run.
Program arguments: Arguments passed to the program.
Working directory: Empty means the executable's folder.
Debugger port: The port the IDE listens on while debugging. Defaults to 6972.
Remote debugging (listen only - the debugged process is started externally) The IDE only waits for the program to connect; you start it yourself.
  • Run: runs the executable.
  • Debug: the IDE listens on the port and adds -start_debugger -debugger_host=localhost:<port> to the program arguments. For a Lime or OpenFL launch, end the program arguments with -args so these flags reach the program.

Haxe Interpreter

Runs a compilation on the Haxe interpreter (eval), or debugs the macros of a regular build.

Field Meaning
Module: The module.
Compiler arguments (hxml file or e.g. -cp src -main Main): What to compile, for example build.hxml or -cp src -main Main.
Working directory (empty = module folder): Where haxe runs.
Run as interpreter (adds --interp unless the arguments already select it; uncheck to debug the macros of a regular build) On by default: --interp is added, so your program runs on the interpreter, unless the arguments, or the hxml file they name, already contain it. Turn it off to run the compilation as a normal build.

The configuration runs the haxe of the module's Haxe SDK, or of the default SDK under Build Tools | Haxe; only without any SDK does it use haxe from the PATH. The Run row of an interpreter build in the Haxe tool window creates one, named like build.hxml (Interpreter).

  • Run: runs haxe with the arguments; with Run as interpreter, this runs your program.
  • Debug: needs no extra library. With Run as interpreter, you debug your program; without it, you debug the macros the build runs. See Debugging with the Interpreter.

Haxe Web Browser

Opens a page in a web browser, served by the IDE or by your own server.

Field Meaning
Module: The module.
Browser: A browser from Settings | Tools | Web Browsers and Preview. Without a choice, the first active browser in that list is used.
(status line) Whether the debug adapter for the chosen browser (Firefox DAP adapter or js-debug adapter (Chromium, Node.js)) is downloaded, with a Download link when it is not.
Serve content directory with the built-in http server On: the IDE serves the Content directory: and opens it. Off: the browser opens the URL:.
Content directory: The folder with the compiled .js, its source map and an index.html. In URL mode, the local folder your own server serves; breakpoints need it to map the served files back to your sources, and Chromium requires it.
URL: The address to open when you do not use the built-in server.
Override Node.js executable: The Node.js that runs the debug adapter. Without it, Node.js comes from Build Tools | Haxe, the Haxe SDK or the PATH.

Build & run sets the content directory to the folder of the compiled .js file.

Important

Debug needs the debug adapter for the selected browser; until it is downloaded, the configuration reports an error for Debug. Run and Profile start without it. Click Download in the configuration to fetch it; the download uses the IDE's HTTP proxy settings. The plugin never downloads it on its own.

  • Run: serves the content directory and opens the browser, or opens the URL. The built-in server keeps running until you click Stop. A content directory the build has not created yet is only a warning, so the first launch of a new configuration builds it and starts.
  • Debug: works with Firefox and Chromium-family browsers; the debug adapter runs on Node.js. Compile with -debug so the source maps exist; Build & run does that when you choose Debug. See Debugging JavaScript.
  • Profile: with IntelliJ IDEA Ultimate and a Chromium-family browser, see Profiling JavaScript.

Haxe Flash Application

Runs a SWF file.

Field Meaning
Module: The module.
Swf file: The SWF to run.
Flex SDK (debug): The Flex/AIR SDK used for debugging. Use the Haxe SDK's Flex/AIR SDK takes the one from Build Tools | Haxe or the Haxe SDK.
Flash player (run): The standalone Flash player that runs the SWF. Empty takes the one from Build Tools | Haxe or the Haxe SDK.
  • Run: opens the SWF in the Flash player.
  • Debug: needs the Flash/Flex plugin, which is available for IntelliJ IDEA Ultimate only, and a Flex/AIR SDK. A Run Haxe action step compiles with -debug -D fdb for it. See Debugging Flash and AIR.

Haxe AIR Application

Runs a desktop AIR application with adl, the AIR debug launcher of the Flex/AIR SDK.

Field Meaning
Module: The module.
Application descriptor: The application's descriptor XML, for example application.xml.
Content root: The folder the descriptor's <content> path is resolved against. Empty means the descriptor's folder.
Flex/AIR SDK: The SDK whose adl launches the application. Use the Haxe SDK's Flex/AIR SDK takes the one from Build Tools | Haxe or the Haxe SDK. For Run, adl may also come from the AIR_SDK environment variable.
ADL options: Extra options for adl.
Program arguments: Arguments passed to the application.

For the Lime air target, Build & run fills in the descriptor and the content root, in the folder the project's <config:air output-directory> names, or else in Lime's default output folder.

Only one instance of an AIR application runs at a time per application ID. To start several instances, enable Allow multiple instances for the configuration; the plugin then gives each launch its own application id.

  • Run: launches the application with adl. It does not need the Flash/Flex plugin: adl comes from the chosen Flex/AIR SDK, from Build Tools | Haxe or from the AIR_SDK environment variable.
  • Debug: needs the Flash/Flex plugin (IntelliJ IDEA Ultimate only). See Debugging Flash and AIR.
  • Profile: with IntelliJ IDEA Ultimate, see Profiling Flash and AIR.

Node.js Application

Runs a JavaScript program with Node.js.

Field Meaning
Module: The module.
Executable: The Node.js executable. Leave it empty to use the one from Build Tools | Haxe, the Haxe SDK or the PATH.
Working directory: Where the program runs.
Program arguments: The .js file to run, followed by the program's own arguments.
Debug adapter: Whether the js-debug adapter (Chromium, Node.js) is downloaded, with a Download link when it is not.

For an hxml build, Build & run leaves Executable: empty, passes the .js file as the program argument and sets the working directory to the .js file's folder.

  • Run: runs node with the arguments.
  • Debug: starts the program with node --inspect-brk and attaches the js-debug adapter, which must be downloaded. Compile with -debug so the source maps exist; Build & run does that when you choose Debug. See Debugging JavaScript.
  • Profile: not available yet.

Neko Application

Runs Neko bytecode or a Neko launcher. Neko programs can be run but not debugged.

Field Meaning
Module: The module.
Executable: A launcher executable (Lime and NME package Neko builds in one). Leave it empty to run the Neko runtime; it then comes from Build Tools | Haxe, the Haxe SDK or the PATH.
Working directory: Where the program runs. When it is empty and Executable: is set, the executable's folder.
Program arguments: Arguments passed to the program. With an empty Executable:, put the .n file here.

For an hxml build, Build & run leaves Executable: empty, passes the .n file as the program argument and sets the working directory to the .n file's folder.

  • Run: runs the program.
  • Debug: not available.

Haxe Unit Tests

Compiles a tests build file with a test reporter and shows the results in the IDE's test runner.

Field Meaning
Tests build file: The build file that builds your tests.
Test filter pattern: Optional, utest only. Limits the run to the matching tests, also for a class run started from the gutter. A single-test run does not use it.
Runs: For a configuration created from the gutter or the context menu: the class or test it runs.

These configurations are usually created from the gutter icons in test code or the Run Unit Tests row in the Haxe tool window. See Unit Tests.

Clone this wiki locally