E1: C1 CALL pred exception_vars.main/2-0 (det) exception_vars.m:17 mdb> echo on Command echo enabled. mdb> goto 2 E2: C2 CALL pred exception_vars.test/2-0 (det) exception_vars.m:23 (exception_vars.m:18) mdb> finish E3: C2 EXCP pred exception_vars.test/2-0 (det) mdb> print * X (arg 1) 42 mdb> continue Uncaught Mercury exception: Software Error: oops Last trace event was event #E4. Last trace event before the unhandled exception was event #E5.