do2screen

Review any section of your Stata do-file, right in the console.

do2screen v5.0

Review any section of your Stata do-file — directly in the console

Ever lost track of how a variable was built across a thousand-line script?
do2screen puts all the relevant code in one place, instantly.

github install randrescastaneda/do2screen

Get Started Reference


What do2screen does

🔍 Variable Tracing

Trace exactly how a variable was created and modified — including all parent variables. No more scrolling through thousands of lines.

do2screen using "analysis.do", ///
    var(pchincome)

📄 Line Range

Display any block of lines from your do-file — by start/end line numbers or by start + count.

do2screen using "analysis.do", ///
    range(253 263)

Quick install

First install the github package by E. F. Haghish, then install do2screen:

net install github, from("https://haghish.github.io/github/")
github install randrescastaneda/do2screen
net install do2screen, ///
    from("https://raw.githubusercontent.com/randrescastaneda/do2screen/master/") ///
    replace
TipRequires Stata 16.1 or higher

do2screen v5.0 uses Stata frames for internal data handling.


Authors

Developed by R. Andres Castaneda (The World Bank) and Santiago Garriga (Universidad Nacional de La Plata).

Licensed under the MIT License.