Jul 17

I am reading Erlang programming by Francesco Cesarini and Simon Thompson.  The book show you how to start up a debugger. by typing debugger:start(). in the erlang shell.  However, that is not enough.  The book implies that you will see the modules automatically.  Not true.  You will have to type ii(YourModule). in the erlang shell to load it up in the debugger window.  After that, you can have call iaa([init]).  Then you can run your module’s function in the erlang shell.  So here is an example:

13> debugger:start().
{ok,<0.140.0>}
14> ii(test2).
{module,test2}
15> iaa([init]).
true
16> test2:fac(3).
6

Comments are closed.