Earlier you could face some problems trying to find an IDE where you can run and debug your Elixir project. But today we found a tool using which Visual Studio Code is now able to run and debug Elixir projects! It is called ‘Mix’.
Meet Mix! This is a tool that you can use to create, compile, test and manage the dependencies of your Elixir application. And what is important, it is shipped along with Elixir.
We suggest you to go through the basic settings and options that are represented in VS Code for Elixir. The extension adds rich elixir language support to VS Code including syntax coloring, snippets, and intellisense.
Notice that you will see “No Configurations” and also a red dot at the engine icon. Click on the engine icon and Visual Studio Code will ask you to select the environment you want to generate a configuration. Select “Mix Tasks” and VSC will generate a new folder
.vscode
in your project and a new filelaunch.js
inside the folder.
Learn about running your Elixir project and the types of attributes that are used in different debuggers and debugging scenarios. Follow this link to find out about VSC for Elixir.
p.s. Debugging Elixir with VSC might be a useful reading!
p.p.s. Our article about different development environments available today for distributed teams could be useful as well!