Fix debugger cursor behaviour on failing instruction
Description
Steps to reproduce
Debug this contract, when execution reaches FAILWITH
instruction, it the cursor will be on the line before, it's weird.
parameter unit;
storage unit;
code {
PRINT "Start contract"
PRINT "Before CAR"
CAR;
PRINT "After CAR"
PUSH string "Some failure message"
PUSH bool True;
IF { FAILWITH; } { DROP; NIL operation; PAIR; }
}
Prerequisites (if needed):
Expected behaviour
Cursor should be on the failwith
instruction.
Actual behaviour
It's somewhere before.
Environment
- last commit in the repo
Edited by Ilya Peresadin