erlang: implementing breakpoints