From 455da738a88941786369eed39a7bcb62ab7b0fb8 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Fri, 19 Mar 2021 12:33:14 +0900 Subject: [PATCH] Add debug info --- internal/encoder/vm_escaped/vm.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/encoder/vm_escaped/vm.go b/internal/encoder/vm_escaped/vm.go index 3d6762a..8b31cb7 100644 --- a/internal/encoder/vm_escaped/vm.go +++ b/internal/encoder/vm_escaped/vm.go @@ -55,6 +55,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt fmt.Println("error occurred", err) fmt.Println(codeSet.Code.Dump()) fmt.Printf("code = %+v\n", code) + fmt.Printf("ctx = %+v\n", ctx) + fmt.Println("b = ", string(b)) fmt.Println("code.op = ", code.Op, "idx = ", code.DisplayIdx, "p = ", load(ctxptr, code.Idx)) panic(err) }