Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Debug launch with multiproject solution

Aperta
#3 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
vscode

Direzione di ricerca

Start with the launch.json and task.json configurations shown in the issue, then trace how the solution and application file are selected for a multiproject CMSIS solution. Compare the single-project and three-project cases; done means the launch and flash tasks select the application project rather than the first library project without a hard-coded output path.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Windows 10
Arm debugger 1.0.0 VSC extension

When I generate a solution with a single project all works fine.
my launch.json looks like:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Arm Debug",
"type": "arm-debug",
"request": "launch",
"serialNumber": "${command:device-manager.getSerialNumber}",
"program": "${command:embedded-debug.getApplicationFile}",
"cmsisPack": "${command:cmsis-csolution.getTargetPack}",
"connectMode": "auto",
"debugFrom": "main",
"probe": "CMSIS-DAP",
"programMode": "auto",
"resetMode": "auto",
"preLaunchTask": "Flash Device"
}
]
}
and my task json looks like:
{
"version": "2.0.0",
"tasks": [
{
"label": "Build Context",
"type": "cmsis-csolution.build",
"solution": "${command:cmsis-csolution.getSolutionPath}",
"rebuild": false,
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Flash Device",
"type": "arm-debugger.flash",
"serialNumber": "${command:device-manager.getSerialNumber}",
"program": "${command:arm-debugger.getApplicationFile}",
"cmsisPack": "${command:device-manager.getDevicePack}",
"problemMatcher": [],
"dependsOn": "Build Context"
}
]
}

This works just fine for singe project solution. I can build flash and debug.
If I have a solution that contains three projects, the first two listed are library build projects and the third is the actual app with dependency of the previous two libraries. This also builds fine but debug launch seems to try to flash and debug only the first listed project (the library).
I know I could hard code the absolute build output path in the launch.json's "program" node but that does not seem like the right thing to do.
Is there another way?

Lingua principale
Nessun dato sulla lingua
Stelle
7
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ARM-software/vscode-arm-debugger

Tutte le issue di ARM-software/vscode-arm-debugger

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.