Skip to content

Commit

Permalink
add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
LimpidCrypto committed Feb 28, 2024
1 parent 8a4ce9f commit 1caa3d6
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}
}
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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}",
}
]
}
23 changes: 23 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
]
}

0 comments on commit 1caa3d6

Please sign in to comment.