Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show record and record field names in function traces #56

Open
andytill opened this issue Nov 15, 2015 · 0 comments
Open

Show record and record field names in function traces #56

andytill opened this issue Nov 15, 2015 · 0 comments

Comments

@andytill
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant