私はVisual Studioコードを使って単純なhello worldをデバッグしようとしています。私のデバッガ設定ファイルでターミナルパスを設定する方法は?私は以下の設定を使用しています。デバッグを開始できません。デバッガを起動するための端末はありません。 Gnome TerminalまたはXTermをインストールしてください
{
"version": "0.2.0",
"configurations": [
{
"name": "C++ Launch (GDB)",
"type": "cppdbg",
"request": "launch",
"launchOptionType": "Local",
"miDebuggerPath": "/usr/bin/gdb",
"targetArchitecture": "x64",
"program": "${workspaceRoot}/hello.out",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true
},
{
"name": "C++ Attach (GDB)",
"type": "cppdbg",
"request": "launch",
"launchOptionType": "Local",
"miDebuggerPath": "/usr/bin/gdb",
"targetArchitecture": "x64",
"program": "${workspaceRoot}/hello.out",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceRoot}",
"environment": [],
"processId": "enter program's process ID",
"externalConsole": true
}
]
}
[ソース](https://github.com/Microsoft/MIEngine/blob/2187999976a8606700097b649d2ffb2b3ff070a5/src/MICore/TerminalLauncher.cs)で「/ usr/bin/gnome-terminal」としてハードコードされているようです'と'/usr/bin/xterm'を実行します。これらのファイルはありませんか? –
私は現在ソースをチェックしており、https://github.com/Microsoft/vscode/issues/9231で問題を公開しています。 –
私は、これら2つのアプリケーションのどちらもインストールしていないのですか?そうしないと、Linuxシステムで管理者権限を持っていれば、通常は簡単にインストールできます。 –