microsoft / microsoft/vscode-cpptools
First character is skipped on logging message
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Hi,
I'm using the debugger in remote. It worked quite well, except for one thing: the first character is skipped for each logged message, this is the script I'm using to debug a remote program on CentOs:
{
"name": "C++ remote launch (ssh)",
"type": "cppdbg",
"request": "launch",
"program": "/home/renaud/workspace/LGDN_001_DEMONSTRATOR/testApplications/lgdn_001_demonstrator/Lgdn001Demonstrator", // Executable on the remote machine
"args": ["-v2", "-j5", "-t3", "13"],
"stopAtEntry": false,
"cwd": "/home/renaud/workspace/LGDN_001_DEMONSTRATOR/testApplications/lgdn_001_demonstrator", // Directory on remote machine
"environment": [],
"externalConsole": true,
"sourceFileMap": {
"/home/renaud/workspace/LGDN_001_DEMONSTRATOR/testApplications/lgdn_001_demonstrator/src": "${workspaceRoot}/software/src" // "Compile time source location": "local source location"
},
"pipeTransport": {
"pipeCwd": "/usr/bin", // Local directory of pipe program
"pipeProgram": "ssh", // Pipe program
"pipeArgs": ["renaud@10.1.38.10"],
"debuggerPath": "/usr/bin/gdb" // Debugger location on the remote machine
},
"logging": {
"engineLogging": true
}
}
An example of message expected:
0min 1sec: [3;34mDEBUG: Lockable: Unlock the instance of the program
But I'm getting that:
min 1sec: [3;34mDEBUG: Lockable: Unlock the instance of the program
With the engine logging enabled, I get that information (hope it can help):
1: (5826) ->0min 1sec: [3;34mDEBUG: Lockable: Unlock the instance of the program
Also everything is logged in the debug console, and not on an external terminal (as requested in the script), but that's not problem for me.
If you want more details, just ask.
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
Riproduci il problema utilizzando la configurazione di avvio cppdbg segnalata, in particolare pipeTransport con ssh e gdb remoto su CentOS, con engineLogging abilitato. Confronta il messaggio registrato non elaborato con il messaggio visualizzato; il lavoro è completato quando il primo carattere viene conservato in ogni messaggio registrato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, vscode
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100