Skip to content

Commit beeeb54

Browse files
Add more log and telemetry
1 parent bb30e02 commit beeeb54

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

src/extension/debugger/hooks/childProcessAttachService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ChildProcessAttachService implements IChildProcessAttachService {
2828
lifecycleManagedByParent: true,
2929
};
3030
const folder = this.getRelatedWorkspaceFolder(debugConfig);
31-
traceLog('Start debugger in the child proccess');
31+
traceLog('Start debugger in the attach child proccess');
3232
const launched = await debug.startDebugging(folder, debugConfig, debugSessionOption);
3333
if (!launched) {
3434
showErrorMessage(l10n.t('Failed to launch debugger for child process {0}', debugConfig.subProcessId!)).then(

src/extension/debugger/hooks/debugpySocketsHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class DebugpySocketsHandler implements IDebugSessionEventHandlers {
3131
}
3232

3333
if (event.event === DebuggerEvents.DebugpySockets) {
34-
traceLog();
34+
traceLog("Received 'debugpySockets' event from debugpy.");
3535
let portSocket = event.body.sockets.find((socket: { [x: string]: any }) => {
3636
return socket['internal'] === false;
3737
});

src/extension/debugger/inlineValue/pythonInlineValueProvider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import {
1111
InlineValueEvaluatableExpression,
1212
} from 'vscode';
1313
import { customRequest } from '../../common/vscodeapi';
14+
import { sendTelemetryEvent } from '../../telemetry';
15+
import { EventName } from '../../telemetry/constants';
1416

1517
export class PythonInlineValueProvider implements InlineValuesProvider {
1618
public async provideInlineValues(
@@ -100,6 +102,7 @@ export class PythonInlineValueProvider implements InlineValuesProvider {
100102
}
101103
}
102104
}
105+
sendTelemetryEvent(EventName.DEBUGGER_SHOW_PYTHON_INLINE_VALUES);
103106
return allValues;
104107
}
105108
}

src/extension/telemetry/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,4 +683,11 @@ export interface IEventNamePropertyMapping {
683683
"DEBUGGER_PYTHON_37_DEPRECATED" : { "owner": "paulacamargo25" }
684684
*/
685685
[EventName.DEBUGGER_PYTHON_37_DEPRECATED]: never | undefined;
686+
/**
687+
* Telemetry event sent when displaying inline values in the debugger.
688+
*/
689+
/* __GDPR__
690+
"DEBUGGER_SHOW_PYTHON_INLINE_VALUES" : { "owner": "paulacamargo25" }
691+
*/
692+
[EventName.DEBUGGER_SHOW_PYTHON_INLINE_VALUES]: never | undefined;
686693
}

0 commit comments

Comments
 (0)