Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

probe-rs/vscode-legacy

Repository files navigation

probe-rs-vscode README

Debugger plugin for vscode, based on probe-rs.

Currently in early alpha stage, except for halting and running not a lot is working yet.

Development setup

The best way to debug and develop the plugin is to start the debug-adapter in server mode, and then attach to the server from vscode. The server can be started with the following command:

cargo run -- --server --port 8800

To run the vscode extension, a new windows of vscode containing the extension can be launched using the .vscode/launch.json configuration. Pressing F5 should open a new window which contains the extension. In that new window, open a project you want to debug, and then launch the extension using a configuration similiar to this:

{

    "version": "0.2.0",
    "configurations": [{
            "type": "probe_rs",
            "request": "attach",
            "name": "Example: gpio_hal_blinky, attach to debugger",
            "program": "${workspaceRoot}/target/thumbv6m-none-eabi/debug/examples/gpio_hal_blinky",
            "cwd": "${workspaceRoot}",
            "reset": true,
            "halt_after_reset": false,
            "server_mode": true,
            "server_port": 8800,
            "chip": "nrf5182"
        }
    ]
}

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •