I have a hard time figuring this out. If the code executes, then it means the processor reads instructions. Surely there is some way to access those instructions?
Running the code in a simulator would give you the final output, but would do very little to explain how the code itself is working, which is what you usually are after.