Erlang debugging in erlide

Source: Internet
Author: User

Erlang has been running very fast in recent years. Check the debugging method in windows. Generally, the official debugger or eride debugging mode is used. I use the eclipse + erlide mode:

1. Install the eclipse environment, Java 6 + eclipse4.2, and the latest Erlang version;

2. Install the Erl plug-in, eclipse --> help --> eclipse marketplace --> seacrh --> erlide, accept the installation protocol, and restart eclipse after installation;

3. eclipse --> Windows --> perferences --> Erlang --> installed runtimes --> Add the installation path of ERL (not the bin directory), and then restart eclipse;

4. An example:

File Name: test1.erl

File Content:

-module(test1).-import(lists, [map/2, sum/1]).%% ====================================================================%% API functions%% ====================================================================-export([say/0]).%% ====================================================================%% Internal functions%% ====================================================================say() ->L = [1, 2, 3, 4],S1 = sum( map(fun(X) -> X * 2 end, L) ),S2 = sum([X * 2 || X <- L]),io:format("~s~n", ["Hello World."]).

5. Set the debugging method:

Open the debug configure dialog box

To set the project startup, you must set three tabs: Erlang, runtime, and debug.

6. Click the debug button in the previous dialog box to start the mode:

---- The Erlang of the debugging version is over.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.