@@ -14,6 +14,8 @@ import {
1414} from 'vscode' ;
1515import { createFileSystemWatcher , debugStartDebugging } from './utils' ;
1616import { traceError , traceVerbose } from './common/log/logging' ;
17+ import { sendTelemetryEvent } from './telemetry' ;
18+ import { EventName } from './telemetry/constants' ;
1719
1820/**
1921 * Registers the configuration-less debugging setup for the extension.
@@ -67,8 +69,8 @@ export async function registerNoConfigDebug(
6769 // Add env var for PYDEVD_DISABLE_FILE_VALIDATION to disable extra output in terminal when starting the debug session.
6870 collection . replace ( 'PYDEVD_DISABLE_FILE_VALIDATION' , '1' ) ;
6971
70- // Add env vars for DEBUGPY_ADAPTER_ENDPOINTS , BUNDLED_DEBUGPY_PATH, and PATH
71- collection . replace ( 'DEBUGPY_ADAPTER_ENDPOINTS ' , tempFilePath ) ;
72+ // Add env vars for VSCODE_DEBUGPY_ADAPTER_ENDPOINTS , BUNDLED_DEBUGPY_PATH, and PATH
73+ collection . replace ( 'VSCODE_DEBUGPY_ADAPTER_ENDPOINTS ' , tempFilePath ) ;
7274
7375 const noConfigScriptsDir = path . join ( extPath , 'bundled' , 'scripts' , 'noConfigScripts' ) ;
7476 const pathSeparator = process . platform === 'win32' ? ';' : ':' ;
@@ -84,6 +86,7 @@ export async function registerNoConfigDebug(
8486 // create file system watcher for the debuggerAdapterEndpointFolder for when the communication port is written
8587 const fileSystemWatcher = createFileSystemWatcher ( new RelativePattern ( tempDirPath , '**/*' ) ) ;
8688 const fileCreationEvent = fileSystemWatcher . onDidCreate ( async ( uri ) => {
89+ sendTelemetryEvent ( EventName . DEBUGGER_NO_CONFIG_DEBUGGING ) ;
8790 const filePath = uri . fsPath ;
8891 fs . readFile ( filePath , ( err , data ) => {
8992 const dataParse = data . toString ( ) ;
0 commit comments