From 1caa3d613f7f9ca3feb39451b7c194368ffafd98 Mon Sep 17 00:00:00 2001 From: LimpidCrypto Date: Wed, 28 Feb 2024 15:23:54 +0000 Subject: [PATCH] add debugging --- .devcontainer/devcontainer.json | 21 ++++++++++++++++++++- .vscode/launch.json | 18 ++++++++++++++++++ .vscode/tasks.json | 23 +++++++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 477b5b8..0096a0a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -8,5 +8,24 @@ 3011, 3012 ], - "postStartCommand": "cargo install loco-cli" + "postStartCommand": "cargo install loco-cli", + "customizations": { + "vscode": { + "extensions": [ + // general + "usernamehw.errorlens", + "naumovs.color-highlight", + "shd101wyy.markdown-preview-enhanced", + "IBM.output-colorizer", + "aaron-bond.better-comments", + // rust + "rust-lang.rust-analyzer", + "vadimcn.vscode-lldb", + "serayuzgur.crates", + "tamasfe.even-better-toml", + // other + "GitHub.copilot" + ] + } + } } \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..2c54a09 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,18 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "launch", + "name": "Debug executable 'project-cli'", + "program": "${workspaceFolder}/target/debug/${workspaceFolderBasename}-cli", + "preLaunchTask": "build_project", + "args": [ + "start", + "-e", + "development" + ], + "cwd": "${workspaceFolder}", + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..d35556d --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,23 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build_project", + "type": "shell", + "options": { + "cwd": "${workspaceFolder}", + "shell": { + "executable": "/bin/bash", + "args": [ + "-c", + "-i" + ] + } + }, + "command": "cargo", + "args": [ + "build" + ] + } + ] +} \ No newline at end of file