
저는 Visual Studio Code를 처음 접했고 Ubuntu Machine에 설치하고 디버거를 설치했습니다. "donnet run" 명령을 사용하면 프로그램을 정상적으로 실행할 수 있습니다. 나는 settings.json 파일에 "csharp.fallbackDebuggerLinuxRuntimeId": "ubuntu.16.10-x64"를 추가하여 디버거를 구성하고 다음과 같이 내 dll을 가리키도록 launch.json을 변경했습니다.
{
"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"
}
그만큼">"이 줄의 끝에 문제가 있습니다. 원래 코드에서 남은 부분입니다.