wasm-micro-runtime
wasm-micro-runtime copied to clipboard
Calling "step-over" on the last line of the function failed
Here is the assembly of test code
When the breakpoint is triggered at "fun [79] return", as shown in the following figure:
At this point, the runtime is in the following code:
When the user calls "step-over", the following code will be triggered
But the value of "step_count" is 1, so the pause signal will not be triggered
At the same time, the value of "step_count" is 1, so the pause signal will not be triggered. However, "return_func" restores the stack, so only the next section of code can be executed. If the next line of code is a calling function, it will enter the function and cause debugging information errors.
May I ask why "step_count" needs to be equal to 2? And how to resolve the appeal issue?