Bitstr matching raises an exception in the debug mode (#42)
Hi,
The below code works fine in the ordinary Run mode by the erlide in the eclipse Indigo.
However, it raises "no match of right hand side value" exception when it is run in the Debug mode.
At first, I suspected this is a problem in the Erlang itself.
However, the Erlang's debugger could run this code without raising this exception. Thus, I think this is a problem in the erlide.
[mytest.erl]
-module(mytest).
-export([test/0]).
test() ->
Data = <<0:2>>,
BitSize = bit_size(Data),
<<X:BitSize>> = Data,
X.
[Exception]
Eshell V5.9
(ErlangTest@EV101F74E6B84F)1> mytest:test().
called as mytest:test()
(ErlangTest@EV101F74E6B84F)2>
The below code works fine in the ordinary Run mode by the erlide in the eclipse Indigo.
However, it raises "no match of right hand side value" exception when it is run in the Debug mode.
At first, I suspected this is a problem in the Erlang itself.
However, the Erlang's debugger could run this code without raising this exception. Thus, I think this is a problem in the erlide.
[mytest.erl]
-module(mytest).
-export([test/0]).
test() ->
Data = <<0:2>>,
BitSize = bit_size(Data),
<<X:BitSize>> = Data,
X.
[Exception]
Eshell V5.9
(ErlangTest@EV101F74E6B84F)1> mytest:test().
- exception error: no match of right hand side value <<0:2>>
called as mytest:test()
(ErlangTest@EV101F74E6B84F)2>
Leave a comment
on 2012-02-03 10:01 *
By Vlad Dumitrescu
I would guess that the debugger doesn't handle bitstrings well enough
on 2012-09-17 04:54 *
By Vlad Dumitrescu
Milestone changed from backlog to sprint #34
Status changed from New to Test
Milestone changed from backlog to sprint #34
Status changed from New to Test
This is fixed by updating debugger to R15