microsoft / microsoft/vscode-cpptools
[Feature Request] Separate SetupCommands for before and after debuggee info passed to gdb
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
I'm trying to pass some extra commands after the launch of GDB. These commands are working if I enter them manually in the debug console of Visual Studio, prefixed with "-exec", after GDB started. I'd like to use setupCommands to do it automatically with the launch.json file. Here is what my file looks like :
{
//General
"name": "PyraDebug",
"type": "cppdbg",
"request": "launch",
"program": "/Users/Squarp/Code/pyrapro/build/pyrapro/pyrapro.elf",
"targetArchitecture": "ARM",
"launchCompleteCommand": "None",
"cwd": "${workspaceFolder}",
"externalConsole": false,
//GDB Server
"MIMode": "gdb",
"miDebuggerServerAddress": "localhost:3333",
"miDebuggerPath": "/Users/Squarp/Code/opt/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gdb",
"miDebuggerArgs": "",
"stopAtEntry": true,
"serverLaunchTimeout": 2000,
"setupCommands": [
{"text": "monitor reset halt"},
{"text": "load"},
{"text":"continue"}
],
"customLaunchSetupCommands": [],
"logging": { "engineLogging": true, "trace": true, "traceResponse": true }
//Tasks
// "preLaunchTask": "rebuild"
}
And the error :
Unable to start debugging. Unexpected GDB output from command "-interpreter-exec console "monitor reset halt"". "monitor" command not supported by this target.
Those commands are pretty classic, I tried many things but I'm stuck now. Everything is working fine if I enter those in Terminal.
Any help would be greatly appreciated.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
La issue non indica alcun file del repository né alcun test; inizia tracciando come cppdbg elabora i setupCommands di launch.json e come viene gestito l'output di avvio di GDB. Confronta le fasi richieste prima e dopo il debuggee con il comportamento esistente di customLaunchSetupCommands. Il lavoro è completato quando le configurazioni di avvio possono collocare i comandi nelle fasi richieste senza compromettere la configurazione GDB corrente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- vscode
- Ambito
- devtools
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100