microsoft / microsoft/vscode-cpptools
[Feature request] Send user settings of terminal choice during launch (e.g. user setting: terminal.external....)
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
I am trying to launch a debug session. Unfortunately, gnome-terminal fails to launch. However, xterm works fine. I am unable to get Visual studio code to use Xterm. Any Help Appreciated.
User Settings:
{
"workbench.colorTheme": "Quiet Light",
"editor.fontSize": 14,
"julia.executablePath": "/usr/local/bin/julia",
"files.associations": {
"*.jl": "julia"
},
"editor.fontFamily": "'DejaVu Sans Mono'",
"editor.fontWeight": "bold",
"editor.suggestFontSize": 11,
"clang.executable": "/srllc/tp/clang/v6.0.0/bin",
"clang.cxxflags": [
"--std=c++11"
],
"terminal.external.linuxExec": "/bin/xterm"
}
"name": "test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/a.out",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"environment": [ {"Name":"LD_LIBRARY_PATH", "Value":"/opt/gcc-7.3.0/lib64"} ],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"logging": {
"engineLogging": true
},
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
Debug from the launch:
: (207) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'
1: (221) LaunchOptions ExePath='a.out'
1: (221) LaunchOptions WorkingDirectory='build'
1: (221) LaunchOptions ExeArguments='2018 0 2 0 5 2018 0 2 10'
1: (221) LaunchOptions MIMode='gdb'
1: (221) LaunchOptions MIDebuggerPath='/usr/bin/gdb'
1: (221) LaunchOptions WaitDynamicLibLoad='false'
1: (221) LaunchOptions>
1: (221) LaunchOptions
1: (221) LaunchOptions -enable-pretty-printing
1: (221) LaunchOptions
1: (221) LaunchOptions
....................................
.............................................
1: (221) LaunchOptions
1: (301) TempFile=/tmp/Microsoft-MIEngine-fifo-o7umkzct.ydv
1: (301) TempFile=/tmp/Microsoft-MIEngine-fifo-rchtx3yv.2pf
1: (301) TempFile=/tmp/Microsoft-MIEngine-fifo-t6pq9ig2.q4j
1: (357) term-stderr:Option "--title" is deprecated and might be removed in a later version of gnome-terminal.
1: (364) term-stderr:Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error spawning command line 'dbus-launch --autolaunch=36e4fff9ca604cbc9c6743ae4bf5904b --binary-syntax --close-stderr': Child process exited with code 1
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 esaminando l'impostazione terminal.external.linuxExec in settings.json e la configurazione di avvio in launch.json, quindi confrontale con l'output di avvio del debug segnalato. Traccia il punto in cui il terminale selezionato viene gestito durante un avvio di debug C/C++. Il lavoro è completato quando la scelta del terminale configurata viene trasmessa e viene avviato xterm invece di gnome-terminal.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, linux, typescript, vscode
- Ambito
- devtools, operating-systems
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100