diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 362775815..deb8143f7 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,6 +1,6 @@ { "recommendations": [ - "rust-lang.rust", + "matklad.rust-analyzer", "vadimcn.vscode-lldb", "serayuzgur.crates", "editorconfig.editorconfig", diff --git a/.vscode/launch.json b/.vscode/launch.json index 6b50bd128..dfa821c69 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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}" } ] } \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index a75b26919..e648ed3e5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,4 @@ { "lldb.adapterType": "native", - "lldb.launch.sourceLanguages": ["rust"], - "rust-client.updateOnStartup": true, - "rust.all_features": true + "lldb.launch.sourceLanguages": ["rust"] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index 15130cafe..000000000 --- a/.vscode/tasks.json +++ /dev/null @@ -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" - ] - } - ] -} \ No newline at end of file