microsoft / microsoft/vscode-cpptools
First character is skipped on logging message
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 6.2k
- フォーク
- 1.7k
- 平均マージ
- 14時間 46分
- マージ済み PR(30日)
- 61
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
報告された cppdbg 起動構成を使用して問題を再現します。特に、engineLogging を有効にした状態で、CentOS 上の ssh とリモート gdb を使用する pipeTransport を対象にします。生のログメッセージと表示されたメッセージを比較します。各ログメッセージで最初の文字が保持されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp, vscode
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100