Skip to content

Commit 2cf147c

Browse files
committed
1 parent 4ffd8c8 commit 2cf147c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/client/debugger/DebugClients/LocalDebugClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ export class LocalDebugClient extends DebugClient {
9696
newEnvVars['PYTHONIOENCODING'] = 'UTF-8';
9797
process.env['PYTHONIOENCODING'] = 'UTF-8';
9898
}
99+
if (!environmentVariables.hasOwnProperty('PYTHONUNBUFFERED')) {
100+
environmentVariables['PYTHONUNBUFFERED'] = '1';
101+
newEnvVars['PYTHONUNBUFFERED'] = '1';
102+
process.env['PYTHONUNBUFFERED'] = '1';
103+
}
99104
let ptVSToolsFilePath = this.getPTVSToolsFilePath();
100105
let launcherArgs = this.buildLauncherArguments();
101106

0 commit comments

Comments
 (0)