Add VSCode configuration files for build and debugging tasks
This commit is contained in:
parent
ccfa5566d1
commit
daf410ec7e
2 changed files with 97 additions and 0 deletions
61
.vscode/launch.json
vendored
Normal file
61
.vscode/launch.json
vendored
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Build: Release",
|
||||
"type": "node-terminal",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "Build: Release",
|
||||
"command": "echo 'Build Release terminé !'"
|
||||
},
|
||||
{
|
||||
"name": "Build: Debug",
|
||||
"type": "node-terminal",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "Build: Debug",
|
||||
"command": "echo 'Build Debug terminé !'"
|
||||
},
|
||||
{
|
||||
"name": "Clean Build Folders",
|
||||
"type": "node-terminal",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "Clean Build Folders",
|
||||
"command": "echo 'Nettoyage terminé !'"
|
||||
},
|
||||
{
|
||||
"name": "Attach to Running Program (No Flash)",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/build/debug/bibotron.ino.elf",
|
||||
"args": [],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${workspaceFolder}",
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "/Users/lea/Library/Arduino15/packages/esp32/tools/xtensa-esp-elf-gdb/16.3_20250913/bin/xtensa-esp32s3-elf-gdb",
|
||||
"miDebuggerServerAddress": "10.13.12.168:3333",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Enable pretty-printing for gdb",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
},
|
||||
{
|
||||
"description": "Set remote hardware watchpoint limit",
|
||||
"text": "set remote hardware-watchpoint-limit 2",
|
||||
"ignoreFailures": false
|
||||
}
|
||||
],
|
||||
"postRemoteConnectCommands": [
|
||||
{
|
||||
"description": "Interrupt the running program",
|
||||
"text": "interrupt",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
],
|
||||
"serverLaunchTimeout": 20000,
|
||||
"serverStarted": "Listening on port 3333 for gdb connections"
|
||||
}
|
||||
]
|
||||
}
|
||||
36
.vscode/tasks.json
vendored
Normal file
36
.vscode/tasks.json
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Build: Release",
|
||||
"type": "shell",
|
||||
"command": "arduino-cli compile --fqbn esp32:esp32:esp32s3box --build-property \"build.partitions=default_16MB\" --output-dir ./build/release .",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Build: Debug",
|
||||
"type": "shell",
|
||||
"command": "arduino-cli compile --fqbn esp32:esp32:esp32s3box --build-property \"build.partitions=default_16MB\" --build-property \"build.code_debug=5\" --output-dir ./build/debug .",
|
||||
"group": "build",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "shared"
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Clean Build Folders",
|
||||
"type": "shell",
|
||||
"command": "rm -rf ./build",
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue