You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It is not possible to debug a module using the maybe expression.
To Reproduce
Create a minimal project with a test module using the maybe_expr, then try to "interpret" it by calling int:i/1 on said module: the function will crash due to a function_clause error on the dbg_iload:expr/3 function. Looking into the source code, it does not seem to handle the 'maybe' and maybe_match expressions.
Describe the bug
It is not possible to debug a module using the maybe expression.
To Reproduce
Create a minimal project with a test module using the maybe_expr, then try to "interpret" it by calling
int:i/1
on said module: the function will crash due to a function_clause error on thedbg_iload:expr/3
function. Looking into the source code, it does not seem to handle the 'maybe' and maybe_match expressions.Expected behavior
It should be possible to debug/interpret modules using the maybe expression.
Affected versions
OTP 25+ but I cannot test on 26+ but I am assuming that they are affected too by looking into the source code.
Additional context
I created a minimal project here: https://github.com/lucavallerini/erlmaybedbg. The test module is the affected one.
The text was updated successfully, but these errors were encountered: