If you are Filipino, you are most likely singing the title by now
Looking for a missing bracket, a misplaced comma, or a space that shouldn’t be there—or debugging in general—can be a pain sometimes. When the usual error message fails to point out where you messed up, try turning
traceon to track down the error.
traceliterally traces the execution of programs. It echoes the lines that Stata executes internally. Reading through the whole thing on your results window can be daunting but you don’t really have to go through those. You just need to know which line it stops executing and see why it stopped there. To turn on
set trace on
set trace off
tracebefore you lose your mind. For more options, see
help set trace.
Now, continue with the singing.. “what did I do to make you change your mind completely..”