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

Multiple Trace Output #8

Open
gordonguthrie opened this issue Dec 30, 2014 · 2 comments
Open

Multiple Trace Output #8

gordonguthrie opened this issue Dec 30, 2014 · 2 comments

Comments

@gordonguthrie
Copy link

I have multiple traces attached - I fire and event and get a trace - but I can't easily tell which trace triggered it - multiple arity fns with records in each argument are hard to mentally parse to reconstruct the arity of the call in your head

@andytill
Copy link
Owner

I could easily allow searches on module:fun/arity string, you can now even see multiple functions with by using a pipe i.e. func1|func2.

A better but more involved way might be to spawn a separate window that only shows traces for that function, like WireSharks TCP follow stream.

I don't want to add more colours since it is not searchable and colours already denote trace log states. What were your thoughts?

@andytill
Copy link
Owner

I have since needed this myself!

The easy answer is to spawn another window that contains the trace list and filter field, and populate the filter with the function name e.g. gen_server:call/3 which will only show the traces for that function, steps:

  • Add a context menu item to the right click menu
  • When the item is executed create a new window and pass in the function name string and DbgTraceView.sortedTtraces. The control in the window should create its own filtered version of the list so changes to the filter will only affect its own view.
  • Set the filter string in the filter field.

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

2 participants