Skip to content

Commit

Permalink
Merge pull request #25 from eZioPan/vscode-basic-debug
Browse files Browse the repository at this point in the history
basic debug setup
  • Loading branch information
Dirbaio authored Feb 18, 2024
2 parents 247ccbe + 6f45a16 commit 06d679e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode/*.json linguist-language=JSON-with-Comments
26 changes: 26 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"preLaunchTask": "cargo build",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/target/debug/chiptool",
// Assume stm32-data and chiptool is cloned side-by-side
/*
"cwd": "${workspaceFolder}/..",
// Add chiptool commandline arguments here to act a debug run.
"args": [
"transform",
"--transform",
"stm32-data/transforms/SAI.yaml",
"--input",
"stm32-data/data/registers/sai_h5.yaml",
"--output",
"stm32-data/data/registers/sai_h5.yaml"
]
*/
}
]
}
14 changes: 14 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"command": "build",
"problemMatcher": [
"$rustc"
],
"group": "build",
"label": "cargo build"
}
]
}

0 comments on commit 06d679e

Please sign in to comment.