Enable erlstack-mode
globally to peek at the source code of
functions appearing in Erlang stack traces:
(require 'erlstack-mode)
Moving point to a stack trace will reveal code in question. This
plugin works best with projectile
, however it’s not a hard
requirement.
The following key mappings are activated while point is on a stack trace:
C-<up>
Jump to the next stack frameC-<down>
Jump to the previous stack frameC-<return>
Open code for editing
The following variables can be customized:
A hook that is used to locate source code paths of Erlang modules
Path to the OTP source code. Customize this variable to locate OTP modules.
A hook that is called when erlstack-file-search-hook
returns
multiple paths for a module. It can be used to pick the preferred
alternative