
私は Visual Studio Code を初めて使用します。Ubuntu マシンにインストールし、デバッガーをインストールしました。「donnet run」コマンドを使用して、プログラムを通常どおり実行できます。settings.json ファイルに「"csharp.fallbackDebuggerLinuxRuntimeId": "ubuntu.16.10-x64"」を追加してデバッガーを構成し、launch.json を次のように dll を指すように変更しました。
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceRoot}/bin/Debug/netcoreapp1.1/Code.dll>",
"args": [],
"cwd": "${workspaceRoot}",
"stopAtEntry": false,
"console": "internalConsole"
}
何か案は?
答え1
問題を発見し、修正しました。それは構文の問題でした。
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceRoot}/bin/Debug/netcoreapp1.1/Code.dll>",
"args": [],
"cwd": "${workspaceRoot}",
"stopAtEntry": false,
"console": "internalConsole"
}
その">"この行の最後に問題があります。これは元のコードからの残りです。