Created
May 23, 2019 08:16
-
-
Save dongyuwei/ddf7c911554b61c48450b089c259284f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-ifndef(PRINT). | |
-define(PRINT(Var), io:format("DEBUG: ~p:~p - ~p~n~n ~p~n~n", [?MODULE, ?LINE, ??Var, Var])). | |
-endif. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see http://blog.rusty.io/2011/01/13/beautiful-erlang-print/