Skip to content

Commit 3a12f3d

Browse files
author
Jimmy
authored
[VM ADD] add debug info (#3191)
* add debug info * use VMPerf isnstead of debug to avoid workflow test output. * try debug again * still no DEBUG
1 parent 711fe52 commit 3a12f3d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Neo.VM/ExecutionEngine.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ protected internal void ExecuteNext()
135135
ExecutionContext context = CurrentContext!;
136136
Instruction instruction = context.CurrentInstruction ?? Instruction.RET;
137137
PreExecuteInstruction(instruction);
138+
#if VMPERF
139+
Console.WriteLine("op:["
140+
+ this.CurrentContext.InstructionPointer.ToString("X04")
141+
+ "]"
142+
+ this.CurrentContext.CurrentInstruction?.OpCode
143+
+ " "
144+
+ this.CurrentContext.EvaluationStack);
145+
#endif
138146
try
139147
{
140148
JumpTable[instruction.OpCode](this, instruction);

0 commit comments

Comments
 (0)