Skip to content

DAP: a configuration without a file starts its session with "Attaching '' with …" in the console #2154

Done

Description

@lagergren

What happens

A DAP run configuration whose file is empty starts its debug session with the console line

Attaching '' with 'DAP server' at 127.0.0.1:39079

with empty quotes where the file would be. The same goes for Launching ''.

Cause

DAPDebugProcess builds the line by leaving out the file only when it is null:

// Add file info
if (file != null) {
    ...
    title.append(" '");
    title.append(index != -1 ? file.substring(index + 1) : file);
    title.append("'");
}

An empty file, as a configuration whose file field was cleared or never set has, isn't null, so it adds '', and also with before the server's name.

Expected

A blank file is treated as no file: Attaching 'DAP server' at 127.0.0.1:39079, as for a null file.

Found while taking the screenshots for #2152.

Activity

  1. added
    bug
    dap
    on Nov 23, 2026
  2. added this to the 0.30.2 milestone on Nov 23, 2026
  3. added a commit that references this issue on Nov 24, 2026
    a55e996
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