fix: update vscode debug config

This commit is contained in:
Matthew Little
2020-04-16 16:11:55 +02:00
parent 1eb6a9b618
commit d4d2012d8c
4 changed files with 87 additions and 56 deletions

View File

@@ -1,6 +1,6 @@
{
"recommendations": [
"rust-lang.rust",
"matklad.rust-analyzer",
"vadimcn.vscode-lldb",
"serayuzgur.crates",
"editorconfig.editorconfig",

94
.vscode/launch.json vendored
View File

@@ -4,6 +4,49 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'blockstack_lib'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=blockstack-core"
],
"filter": {
"name": "blockstack_lib",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'blockstack-core' testnet",
"cargo": {
"args": [
"build",
"--bin=blockstack-core",
"--package=blockstack-core"
],
"filter": {
"name": "blockstack-core",
"kind": "bin"
}
},
"args": [
"testnet",
"${workspaceFolder}/Stacks.toml"
],
"cwd": "${workspaceFolder}",
"env": {
"RUST_BACKTRACE": "full",
}
},
{
"type": "lldb",
"request": "launch",
@@ -20,8 +63,7 @@
}
},
"args": [],
"cwd": "${workspaceFolder}",
"terminal": "integrated"
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
@@ -40,8 +82,7 @@
}
},
"args": [],
"cwd": "${workspaceFolder}",
"terminal": "integrated"
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
@@ -59,8 +100,7 @@
}
},
"args": [],
"cwd": "${workspaceFolder}",
"terminal": "integrated"
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
@@ -78,9 +118,45 @@
"kind": "bin"
}
},
"args": ["vm"],
"cwd": "${workspaceFolder}",
"terminal": "integrated"
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'blockstack-cli'",
"cargo": {
"args": [
"build",
"--bin=blockstack-cli",
"--package=blockstack-core"
],
"filter": {
"name": "blockstack-cli",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'blockstack-cli'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=blockstack-cli",
"--package=blockstack-core"
],
"filter": {
"name": "blockstack-cli",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}

View File

@@ -1,6 +1,4 @@
{
"lldb.adapterType": "native",
"lldb.launch.sourceLanguages": ["rust"],
"rust-client.updateOnStartup": true,
"rust.all_features": true
"lldb.launch.sourceLanguages": ["rust"]
}

43
.vscode/tasks.json vendored
View File

@@ -1,43 +0,0 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "cargo: build",
"type": "shell",
"command": "cargo build",
"problemMatcher": [
"$rustc"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "cargo: rebuild",
"type": "shell",
"command": "cargo clean && cargo build",
"problemMatcher": [
"$rustc"
]
},
{
"label": "cargo: test all",
"type": "shell",
"command": "cargo test",
"problemMatcher": [
"$rustc"
]
},
{
"label": "cargo: test clarity-vm",
"type": "shell",
"command": "cargo test vm",
"problemMatcher": [
"$rustc"
]
}
]
}