Skip to content

envFile underscore variables don't make it to os.environ #19184

@Murtagy

Description

@Murtagy

Environment data

  • debugpy version: 1.6.0
  • OS and version: OSX 12.3.1
  • Python version (& distribution if applicable, e.g. Anaconda): 3.10
  • Using VS Code or Visual Studio: VS Code 1.67.1

Actual behavior

variable in env file:
_TEST=test

os.environ['_TEST'] is not present

Expected behavior

variable in env file:
_TEST=test

os.environ['_TEST'] == 'test'

Steps to reproduce:

  1. Create env file with _TEST=test
  2. Set envFile to absolute path of 1)
  3. Run debugger and inspect in runtime import os; os.environ

Metadata

Metadata

Labels

area-debuggingbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions