probe-rs / vscode-legacy

A vscode plugin for probe-rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"
        }
    ]
}

About

A vscode plugin for probe-rs


Languages

Language:Rust 89.7%Language:TypeScript 10.3%