Compile, Run, Debug
Click the gutter next to the main function:icon in the editor's
A temporary ad hoc run/debug configuration will be created on the fly in this case.
After the configuration is created, you will be able to:
Run your application from the main menu (), navigation toolbar, or using a shortcut Shift+F10
Debug your application from the main menu (), navigation toolbar, or using a shortcut Shift+F9
In order to use the IntelliJ IDEA debugger with your Erlang application, you need to:
Make sure the 'Add debug info' option is enabled underCtrl+Alt+S
Have an added to your project.run configuration
It can then be used to debug Shift+F9 your program:
Run and Build with Rebar
rebar3 commands represent tasks that can be run by the Rebar3 tool.
In IntelliJ IDEA, you can create anrun configuration for every supported command or a batch of commands:
If you want to build your project using the
rebar3 compile command rather than the default IntelliJ IDEA action, make sure to enable the following option:
- Ctrl+Alt+S 'Compile project with rebar'