help wfdebug

Title

Debugging do-files

When all else fails...

Step 1: Update Stata and user written programs (see update
and adoupdate).

Step 2: Start with a clean slate: clear all and
macro drop _all; restart Stata; reboot your computer; use another
computer.

Step 3: Try a different dataset and different variables.

Step 4: Assume everything could be wrong. Double check things that you are sure are right.

Step 5: Run the program in steps by using /* */ to exclude parts of the do-file.

Step 6: Start over: throw out all of the original code; use a new file; try alternative approaches.

Step 7: Ask for help (see wfhelp).

Also see

wf