Created
May 18, 2012 20:13
-
-
Save raypereda/2727379 to your computer and use it in GitHub Desktop.
header file for debugging erlang
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
% -compile([debug_info, export_all]). | |
% -define (VALUE (Call), io:format ("~p:~p ~s = ~p~n", [?MODULE, ?LINE, ??Call, Call])). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example usage of the value macro.
Here's the output