In remix debug mode, we can see opcodes executed line by line for a transaction, is there any way we can print the list of opcode and their corresponding line number(maybe memory address?) when executing a transaction locally on a Geth client connected to a private chain? Maybe we need to instrument the Geth client? Some concrete idea or example would be really helpful! I want to collect this information for code coverage purpose.
New Edit: I figured out how to use debug.traceTransaction(), however, the returned JSON still misses some info, for example, in the remix debugger, a line of opcode such as
will only show "PUSH1" in the trace, how can I get the more detailed trace like the ones Remix debugger provides?