<div dir="auto">Hi all,<div dir="auto">I'd like to create a tracer that would help me to store the instructions executed. I've seen similar project online but I'd like to understand how to do one on my own.</div><div dir="auto"><br></div><div dir="auto">At the moment my idea is to create a class that would extended the Interpreter the by design extends InstVisitor. At this point I could override the visit Instruction method and execute the main function. Now, for every instruction is executed I should be able to trace it.</div><div dir="auto"><br></div><div dir="auto">Is it the right approach? How would you do it instead?</div><div dir="auto"><br></div><div dir="auto">Thanks</div></div>