May 2018
Intermediate to advanced
412 pages
9h 3m
English
The mix tool is smart when it compiles your project. It analyzes the dependencies between your source files, and only recompiles a file when it has changed or a file it depends on has changed. As a developer, you can also access this dependency information, gaining valuable insights into your code. You do this with the mix xref commands.
List functions that are unknown at the time they are called.
List warnings associated with dependencies (for example, calls to unknown functions).
List the callers to a module or function:
| | $ mix xref callers Logger |
| | mix xref callers Logger |
| | web/controllers/page_controller.ex:1: Logger.bare_log/3 |
| | web/controllers/page_controller.ex:1: ... |
Read now
Unlock full access