For example, in the following code fragment ...
... is there a way to produce a log file that expands the x into "turn" and thus shows ...
at some point?
The reason I ask is that I need to find the differences between my code and a replication package which uses so many locals and globals that even just figuring out in which dofile a particular data file is produced is nigh impossible. The idea I had was to run the entire package with a log open and tracing on and then search the log rather than the code, but it doesn't show the macro values.
PS: I could of course add display sum price `x' style lines before each local usage, but the replication package is too large for that to be feasible unless I automatically generate the code.
Code:
sysuse auto, clear local x "turn" sum price `x'
Code:
sum price turn
The reason I ask is that I need to find the differences between my code and a replication package which uses so many locals and globals that even just figuring out in which dofile a particular data file is produced is nigh impossible. The idea I had was to run the entire package with a log open and tracing on and then search the log rather than the code, but it doesn't show the macro values.
PS: I could of course add display sum price `x' style lines before each local usage, but the replication package is too large for that to be feasible unless I automatically generate the code.
Comment