The fix is to override the user_return function of the debugger, so that we can get the frame right after b = 2 is executed but before the function returns and local variables are dropped.
Added the testcase above to executor, and tested on the frontend too.
This PR fixes this issue.
The fix is to override the
user_return
function of the debugger, so that we can get the frame right afterb = 2
is executed but before the function returns and local variables are dropped.Added the testcase above to executor, and tested on the frontend too.