microsoft / microsoft/vscode-cpptools
Args array not passed to the debugged processes command line
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
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\"",
}
]
}
]
}

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
Inizia dalla configurazione di launch.json e dal percorso di avvio di gdb, quindi riproduci il problema usando argc di main() su Ubuntu. Traccia come viene gestito l'array args durante il debug con gdb; il lavoro è completato quando l'argomento configurato raggiunge la riga di comando del processo sottoposto a debug.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript, vscode
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100