What happens to commented-out variables like #DEBUG=true?

Dotvault treats lines like #KEY=value as disabled variables, not section comments. They show up in the editor with a dimmed style and can be toggled back on. Descriptive comments — # Database settings, that sort of thing — are still treated as section headers.