erlyberly icon indicating copy to clipboard operation
erlyberly copied to clipboard

Trace from cmdline?

Open ruanpienaar opened this issue 8 years ago • 7 comments

Would it be useful if you were able to have erlyberly already start tracing after being connected?

Passing in command line arguments, like, java -jar erlyberly.jar -trace M F A ( something in that region)

ruanpienaar avatar Dec 15 '15 11:12 ruanpienaar

Yes! This could help a lot.

I have been having a problem where I want to trace nodes that get started up and shut down quickly, for example, in common test runs. In this scenario it is not possible to use erlyberly and generally a bit difficult to apply traces:

  • Have an option to keep attempting to connect when erlyberly first starts up.
  • Allow specifying traces in a file containing one MFA per line in M:F/A format.

Modules might not be loaded somodule_info should be called on them to reload them. I'm not sure what the behaviour is for tracing modules that are not yet loaded.

This expands the scope quite a lot though, what do you think?

andytill avatar Dec 15 '15 17:12 andytill

That sounds great! There could be a configuration/preferences scene/window, for "Auto-Connecting" and "Default Tracing". All of this sounds great, i can look into it.

ruanpienaar avatar Dec 15 '15 19:12 ruanpienaar

Would Commons CLI be ok to use?

ruanpienaar avatar Jan 28 '16 21:01 ruanpienaar

Most of this functionality is moved into the UI so could choosing a text file of MFAs also be on the connection window? The JavaFX file chooser can be used to select a file.

andytill avatar Jan 29 '16 10:01 andytill

just as we create the .erlyberly, could we create something like .erlyberly_traces, or maybe even make a directory ?

I'm trying to extend the CMD line arguments, as i'd like to use that. I'm aiming for opening 4 EB's at the same time, with diff node names, etc.

ruanpienaar avatar Jan 29 '16 14:01 ruanpienaar

Would a text box be good enough as the first attempt ? format: [ module:function/arity ], or 3 text boxes even [ module ] : [ function ] / [ arity ] ?

ruanpienaar avatar Jan 29 '16 14:01 ruanpienaar

Hadn't thought of the case of starting multiple nodes from the command line. Feel free to add Commons CLI, used it before and it is decent and doesn't bloat the jar. Please add the flags to the README. Good luck!

andytill avatar Jan 29 '16 14:01 andytill