GithubHelp home page GithubHelp logo

k32 / erlstack-mode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emacsmirror/erlstack-mode

20.0 1.0 1.0 528 KB

Minor mode for previewing code appearing in Erlang stack traces

Emacs Lisp 100.00%

erlstack-mode's Introduction

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

erlstack-mode's People

Contributors

k32 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

erlstack-mode's Issues

Tame popup windows

Never open the code popup in the same window with the stacktrace itself

Fix stack frame regexp

The topmost stack frame may contain function arguments, this is currently not handled

Change delay for the first activation

The following behavior will be more user friendly:

  1. Raise run-with-idle-timer interval to, say, 1 sec when overlay is not active
  2. Use the old 0.1 value when overlay is active

It will reduce unintended triggering

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.