Skip to content

Wrong platform-specific properties applied to debug configuration #1114

@bernhardbreuss

Description

@bernhardbreuss

Describe the bug
After VS Code update to 1.99.0, cortex-debug debug configurations use the windows platform-specific properties inside a devcontainer on WSL. Before the update, the linux platform-specific properties were applied as expected.

The platform-specific debug properties from our launch.json:

...
            "windows": {
                "preLaunchCommands": [
                    "source ../../utils/scripts/ab_win.gdb"
                ],
            },
            "linux": {
                "preLaunchCommands": [
                    "source ../../utils/scripts/ab_unix.gdb"
                ],
            },
...

The actual contents of the GDB scripts don't matter. However, they fail if they are executed on the wrong platform. The failure is correctly handled by cortex-debug (debug stops).

Expected behavior
Linux platform-specific properties are used when launching a debug configuration within a devcontainer (through WSL).

Environment:

  • Visual Studio Code 1.99.0
  • Cortex-Debug Version (this extension) 1.12.1 (1.13.0-pre3 as well)
  • OS: Windows 10 with WSL (Debian Bullseye) and devcontainer (Debian Bullseye)
  • GDB Version: 15.1
  • Compiler Toolchain Version: arm-none-eabi 13.3.Rel1

Additional context
I am writing this issue here, because other extensions (e.g., C/C++ extension from Microsoft) still apply the platform-specific properties correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions