You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The debugger loads trailing comments when loading env variables form .env file
To Reproduce
Create .env file and test.py file
# .envTEST_VAR=test# This comment will show up
# test.pyimportosfromdotenvimportload_dotenvload_dotenv()
print(os.getenv("TEST_VAR"))
# python prints 'test'# debugger prints 'test # This comment will show up'
Run the file, once with python, once using debugger
Describe the bug
The debugger loads trailing comments when loading env variables form .env file
To Reproduce
Create .env file and test.py file
Run the file, once with python, once using debugger
when running with python the output looks like this:
test
when running with debugger the output looks like this:
Expected behavior
The comment from .env file shouldn't be read as a part of variable when using the debugger
Environment:
The text was updated successfully, but these errors were encountered: