Skip to content

Commit a2c9fa4

Browse files
committed
Add debug logging macro
This makes it quick and easy to sump the value of variables during development of PropEr itself. Don't forget to remove them before committing though.
1 parent b4a6374 commit a2c9fa4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/proper_internal.hrl

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969

7070
-define(PROPERTY_PREFIX, "prop_").
7171

72+
-define(var(Value), io:format("~s = ~p\n", [??Value, Value])).
7273

7374
%%------------------------------------------------------------------------------
7475
%% Constants

0 commit comments

Comments
 (0)