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.