Generating Cross-References
Running an occasional cross-reference check on your code when you are developing a program is a good idea. If there are missing functions, you will discover this before you run your program, not after.
You can generate cross-references
using the xref
module. xref
works only if your code has been compiled
with the debug_info
flag set.
I can’t show you the
output of xref
on the code accompanying this book, because
the development is complete and there aren’t any missing
functions. Instead, I’ll show you what happens when I run a
cross-reference check on the code in one of my hobby projects.
vsg
is a simple graphics program that I might release
one day. We’ll do an analysis of the code in the vsg directory where ...
Get Programming Erlang, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.