Vscode improvements (#85)

* Fix URL for probe-rs docs

* Remove settings no longer used by probe-rs debugger

* Default to not enabling haltAfterReset
This commit is contained in:
9names 2024-10-15 20:35:21 +11:00 committed by GitHub
parent a0f2b7f452
commit a97787becb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 20 deletions

13
.vscode/launch.json vendored
View File

@ -1,4 +1,4 @@
// The format of this file is specified in https://probe.rs/docs/tools/vscode/#start-a-debug-session-with-minimum-configuration // The format of this file is specified in https://probe.rs/docs/tools/debugger/#start-a-debug-session-with-minimum-configuration
{ {
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
@ -18,24 +18,17 @@
], ],
"flashingConfig": { "flashingConfig": {
"flashingEnabled": true, "flashingEnabled": true,
"resetAfterFlashing": true, "haltAfterReset": false
"haltAfterReset": true,
}, },
"coreConfigs": [ "coreConfigs": [
{ {
"coreIndex": 0, "coreIndex": 0,
"programBinary": "target/thumbv6m-none-eabi/debug/rp2040-project-template", "programBinary": "target/thumbv6m-none-eabi/debug/rp2040-project-template",
"chip": "RP2040", "rttEnabled": true
// Uncomment this if you've downloaded the SVD from // Uncomment this if you've downloaded the SVD from
// https://github.com/raspberrypi/pico-sdk/raw/1.3.1/src/rp2040/hardware_regs/rp2040.svd // https://github.com/raspberrypi/pico-sdk/raw/1.3.1/src/rp2040/hardware_regs/rp2040.svd
// and placed it in the .vscode directory // and placed it in the .vscode directory
// "svdFile": "./.vscode/rp2040.svd", // "svdFile": "./.vscode/rp2040.svd",
"rttEnabled": true,
"options": {
"env": {
"DEFMT_LOG": "debug"
}
},
} }
], ],
"consoleLogLevel": "Info", //Error, Warn, Info, Debug, Trace "consoleLogLevel": "Info", //Error, Warn, Info, Debug, Trace

View File

@ -1,4 +1,4 @@
// The format of this file is specified in https://probe.rs/docs/tools/vscode/#start-a-debug-session-with-minimum-configuration // The format of this file is specified in https://probe.rs/docs/tools/debugger/#start-a-debug-session-with-minimum-configuration
{ {
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
@ -18,24 +18,17 @@
], ],
"flashingConfig": { "flashingConfig": {
"flashingEnabled": true, "flashingEnabled": true,
"resetAfterFlashing": true, "haltAfterReset": false
"haltAfterReset": true,
}, },
"coreConfigs": [ "coreConfigs": [
{ {
"coreIndex": 0, "coreIndex": 0,
"programBinary": "target/thumbv6m-none-eabi/debug/{{project-name}}", "programBinary": "target/thumbv6m-none-eabi/debug/{{project-name}}",
"chip": "RP2040", "rttEnabled": true
// Uncomment this if you've downloaded the SVD from // Uncomment this if you've downloaded the SVD from
// https://github.com/raspberrypi/pico-sdk/raw/1.3.1/src/rp2040/hardware_regs/rp2040.svd // https://github.com/raspberrypi/pico-sdk/raw/1.3.1/src/rp2040/hardware_regs/rp2040.svd
// and placed it in the .vscode directory // and placed it in the .vscode directory
// "svdFile": "./.vscode/rp2040.svd", // "svdFile": "./.vscode/rp2040.svd",
"rttEnabled": true,
"options": {
"env": {
"DEFMT_LOG": "debug"
}
},
} }
], ],
"consoleLogLevel": "Info", //Error, Warn, Info, Debug, Trace "consoleLogLevel": "Info", //Error, Warn, Info, Debug, Trace