[erlang-questions] View Compiled Binary Search Pattern

Eranga Udesh eranga.erl@REDACTED
Mon May 15 06:09:18 CEST 2017

Hmm.. it would have been a wonderful thing if there was some debug command
to dump the magic binary content. Anyway, thanks for the feedback.
- Eranga

On Sat, May 13, 2017 at 8:36 PM, Jesper Louis Andersen <
jesper.louis.andersen@REDACTED> wrote:

> I don't think there is any support for this in the current or new Erlang
> systems. Compiled patterns are represented as magic binaries currently.
> This will change in Erlang/OTP 20.0 where you will have a reference type
> for this. But the semantics will stay the same: There is no way to go
> backwards. You best bet is to figure out where the creator code is. Then
> you can look at who creates the compiled binary search pattern.
> On Sat, May 13, 2017 at 12:52 PM Eranga Udesh <eranga.erl@REDACTED>
> wrote:
>> Hi,
>> Is there anyway to view Compiled Binary Search Pattern for debugging
>> purposes? I need to output (dump) all content inside the Compiled Pattern.
>> Any possibility?
>> Thanks in advance.
>> - Eranga
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170515/01f765bd/attachment.htm>

More information about the erlang-questions mailing list