andytill / andytill/erlyberly

Show record and record field names in function traces

未关闭
#56 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement erlang help wanted
主要语言
Java
星标
700
派生
45
PR 合并指标
30 天内没有已合并 PR

描述

At the moment erlyberly highlights record and record field names in process state and for certain function patterns used by OTP behaviours where it is likely that a record is used. It would be great to have highlighting for records anywhere they're used.

screen shot 2015-11-15 at 02 09 00

To do this in erlyberly we could do the following:
- On a trace, decompile the module to AST.
- Find dialyzer specs for functions which have records in the arguments or results and put them in an ets table to be checked when a trace comes in.
- Compile record data in the module and put it into an ets table.
- When a trace comes in, check if the function is in the ets containing record functions, pull the record info and convert the record so that it contains meta data like the process state does right now.

The record and function data needs to be deleted and rebuilt when the module is reloaded.

Only erlang is required for this change.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。