NimContracts icon indicating copy to clipboard operation
NimContracts copied to clipboard

Defect messages: show the runtime values in expression?

Open Udiknedormin opened this issue 2 years ago • 0 comments

When a contract is broken, only the original expression and its source are shown. It would be nice to also show the runtime values of the variables used in the expression, otherwise it's not really easy to debug e.g. loops.

Maybe some concept of "context" (e.g. loop counter) that should be passed alongside would be nice too. That way, contracts could show the circumstances of the failure more precisely.

Udiknedormin avatar Sep 03 '21 21:09 Udiknedormin