mark window variables as dbg; document module variables as state