andytill / erlyberly

erlang tracing for the masses
https://twitter.com/erlyberlytips
GNU General Public License v3.0
694 stars 43 forks source link

compile erl remotely if beam loading failed #166

Closed chilikk closed 5 years ago

chilikk commented 6 years ago

It can be tricky to trace with erlyberly when the system running erlyberly has newer version of Erlang/OTP installed than the target system. Erlyberly may then fail to load the erlyberly.beam on the remote system.

This patch will prevent Erlyberly from immediately failing if the .beam file failed to load, but instead will try to copy the corresponding .erl file to the target system and compile it on the target system, which allows to overcome the version mismatch.

andytill commented 5 years ago

Thanks @chilikk and apologies for the delay! Happy New Year.