All Projects → k32 → erlstack-mode

k32 / erlstack-mode

Licence: other
Minor mode for previewing code appearing in Erlang stack traces

Programming Languages

emacs lisp
2029 projects

Analyze Erlang stack traces

https://melpa.org/packages/erlstack-mode-badge.svg

pictures/screencap.gif

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.

Key bindings

The following key mappings are activated while point is on a stack trace:

  • C-<up> Jump to the next stack frame
  • C-<down> Jump to the previous stack frame
  • C-<return> Open code for editing

Customizations

The following variables can be customized:

erlstack-file-search-hook

A hook that is used to locate source code paths of Erlang modules

erlstack-otp-src-path

Path to the OTP source code. Customize this variable to locate OTP modules.

erlstack-file-prefer-hook

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].