Add simple rust program tested with CodeLLDB

This commit is contained in:
Ben Jackson 2020-07-03 13:18:50 +01:00
commit 7848629a1c
5 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1 @@
target/

View file

@ -0,0 +1,35 @@
{
"$schema": "https://puremourning.github.io/vimspector/schema/vimspector.schema.json",
"configurations": {
"Run - CodeLLDB": {
"adapter": {
"variables": {
"CodeLLDB": "$HOME/.vscode/extensions/vadimcn.vscode-lldb-1.5.3",
"build": {
"shell": [ "cargo", "build" ],
"cwd": "${workspaceRoot}"
}
},
"command": [
"${CodeLLDB}/adapter/codelldb",
"--port", "${port}"
],
"port": "${port}",
"configuration": {
"type": "lldb",
"name": "lldb",
"cargo": {}
}
},
"configuration": {
"request": "launch",
"program": "${workspaceRoot}/target/debug/vimspector_test",
"args": [],
"cwd": "${workspaceRoot}",
"env": {},
"terminal": "integrated",
"stopOnEntry": true
}
}
}
}

View file

@ -0,0 +1,5 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "vimspector_test"
version = "0.1.0"

View file

@ -0,0 +1,9 @@
[package]
name = "vimspector_test"
version = "0.1.0"
authors = ["Ben Jackson <puremourning@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

View file

@ -0,0 +1,4 @@
fn main() {
let s = "World!";
println!("Hello, {}!", s);
}