microsoft / microsoft/vscode-cpptools
Args array not passed to the debugged processes command line
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 6.2k
- フォーク
- 1.7k
- 平均マージ
- 14時間 46分
- マージ済み PR(30日)
- 61
説明
Type: Debugger
Input information below
Describe the bug
-
OS and Version: Ubuntu 14.04.1 LTS
-
VS Code Version: 1.25.1
-
C/C++ Extension Version: 0.17.7
-
gdb Version: GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
-
Other extensions you installed (and if the issue persists after disabling them): C++ Intellisense 0.2.2, CMake 0.0.17, CMake Tools 1.1.1, CMake Tools Helper 0.2.1, Git Easy 1.9.1, Git History 0.4.2, Git Merger 0.4.1, Git Tags 1.3.1, Git Tree Compare 1.3.0, gitignore 1.0.1, gitk 1.3.2
-
A clear and concise description of what the bug is.
Using gdb debugger. The command line arguments given in launch.json in the "args" array is not passed to the debugged processes (the setting has no effect). See the below screenshot.
To Reproduce
Steps to reproduce the behavior:
- Using gdb debugger on Ubuntu Linux
- Add command line arguments to launch.json
- Start debugging and check the command line of the debugged processes (check argc from main())
- See the command line from launch.json is not passed to the debugged process
My launch.json file:
{
// 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": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/provisioning-server",
"args": ["../../DALI Development Signer.der"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Command-line arguments",
"text": "-exec set args \"../../DALI Development Signer.der\"",
}
]
}
]
}

コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
launch.json の設定と gdb の起動パスから始め、Ubuntu 上で main() の argc を使って問題を再現します。gdb でデバッグするときに args 配列がどのように処理されるかを追跡します。設定した引数がデバッグ対象プロセスのコマンドラインに到達すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript, vscode
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100