microsoft / microsoft/vscode-cpptools
First character is skipped on logging message
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere das Problem mit der gemeldeten cppdbg-Startkonfiguration, insbesondere pipeTransport mit ssh und remote gdb auf CentOS bei aktiviertem engineLogging. Vergleiche die unformatierte protokollierte Nachricht mit der angezeigten Nachricht; abgeschlossen ist die Aufgabe, wenn das erste Zeichen in jeder protokollierten Nachricht erhalten bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, vscode
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100