Skip to content

Cannot start VS Code debugging: “preconditions not met” #4357

@skywalker8888

Description

@skywalker8888

Summary

When trying to start debugging in VS Code (Run & Debug → Start Debugging), VS Code shows: “Command Start Debugging exists, but its preconditions are not currently met.” This prevents attaching to the device.

Steps Tried

  1. Ran ./fbt vscode_dist to generate .vscode/launch.json and tasks.
  2. Built firmware with ./fbt successfully; build/latest/firmware.elf exists.
  3. Installed marus25.cortex-debug extension.
  4. Selected a configuration (Attach FW (ST-Link)), then pressed Start Debugging.

What I Expected

VS Code should start OpenOCD/GDB and attach to the device.

What Happens

VS Code refuses to start debugging with the “preconditions not met” message.

Environment

  • macOS
  • Repository: flipperzero-firmware (branch dev)

Request

Can you suggest what precondition is missing for the VS Code debug session to start, or provide guidance on how to resolve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions