diff --git a/src/extension/noConfigDebugInit.ts b/src/extension/noConfigDebugInit.ts index f9787d76..33df8c20 100644 --- a/src/extension/noConfigDebugInit.ts +++ b/src/extension/noConfigDebugInit.ts @@ -65,6 +65,8 @@ export async function registerNoConfigDebug( fs.unlinkSync(tempFilePath); } } + // clear the env var collection to remove any existing env vars + collection.clear(); // Add env var for PYDEVD_DISABLE_FILE_VALIDATION to disable extra output in terminal when starting the debug session. collection.replace('PYDEVD_DISABLE_FILE_VALIDATION', '1');