Skip to content

DAP: the debug console prints output events of the category telemetry, which DAP sends to telemetry instead #2197

Done

Description

@lagergren

What happens

The debug console of a DAP session prints the output events whose category is telemetry.

Expected

DAP's output event says of the category telemetry: "Send the output to telemetry instead of the client." VS Code doesn't show it either. A debug adapter can use this category for usage data in a JSON form that isn't meant for the user, for example vscode-js-debug.

Cause

DAPClient.output prints every output event. getContentType maps telemetry to ConsoleViewContentType.LOG_DEBUG_OUTPUT, which the console shows.

Suggested fix

Don't print output events of the category telemetry. At most, log them at DEBUG under LSP4IJ's DAP category, for whoever diagnoses a debug adapter.

Test

A session test with a fake debug adapter: an output event of the category telemetry doesn't reach the console, and one of the category console still does.

Found while reviewing #2167's change of the same method.

Activity

  1. added this to the 0.30.2 milestone on Nov 24, 2026
  2. added
    bug
    dap
    on Nov 24, 2026
  3. added a commit that references this issue on Nov 24, 2026
    1b49b39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdap

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions