We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Function clause matching does not work under debugger if the syntax #record.field is used as function parameter.
To reproduce use the following module:
-module(testrec). -export([test/0]). -record(test, {field1, field2}). func1(Field) when Field =:= #test.field1 -> ok. func2(#test.field1) -> ok. test() -> io:format("1: ~p~n", [func1(#test.field1)]), io:format("2: ~p~n", [func2(#test.field1)]).
If it is run under debugger, test() call ends with
1: ok ** exception error: no function clause matching testrec:func2(2) (testrec.erl, line 7) in function testrec:test/0 (testrec.erl, line 11)
Without debugger it correctly prints two ok's. This is observed in Erlang/OTP 24.
The text was updated successfully, but these errors were encountered:
bea7ad7
Merge branch 'dgud/debugger/fix-record-index/GH-5571/OTP-17865' into …
017a323
…maint
dgud
No branches or pull requests
Function clause matching does not work under debugger if the syntax #record.field is used as function parameter.
To reproduce use the following module:
If it is run under debugger, test() call ends with
Without debugger it correctly prints two ok's. This is observed in Erlang/OTP 24.
The text was updated successfully, but these errors were encountered: