Dear Statalist forum,
I need to understand someone else's code, which includes a long loop containing many local variables and temp-files. I do not completely understand what is done by just looking at the code, so it would certainly help to run each line of code step by step and see what each line of code does with my dataset.
However, I am struggling to find commands that allow me to do so within a loop, where everything is executed at once. For instance, I was already using
etc., but this just helps me spot the exact line where my error occurs.
So, I am wondering if you might have any tips for commands you usually use when trying to understand single lines of codes of long loops (if something like that exists)?
Many thanks in advance.
I need to understand someone else's code, which includes a long loop containing many local variables and temp-files. I do not completely understand what is done by just looking at the code, so it would certainly help to run each line of code step by step and see what each line of code does with my dataset.
However, I am struggling to find commands that allow me to do so within a loop, where everything is executed at once. For instance, I was already using
Code:
set trace on
So, I am wondering if you might have any tips for commands you usually use when trying to understand single lines of codes of long loops (if something like that exists)?
Many thanks in advance.
Comment