From: Igor Kulaychuk Date: Tue, 6 Feb 2018 20:06:41 +0000 (+0300) Subject: Use `dotnet` CLI to launch application X-Git-Tag: submit/tizen/20180620.071641~20^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36395f1c0dfe14c362bee80f121aff2a89f5c273;p=sdk%2Ftools%2Fnetcoredbg.git Use `dotnet` CLI to launch application --- diff --git a/src/debug/netcoredbg/vscodeprotocol.cpp b/src/debug/netcoredbg/vscodeprotocol.cpp index ac55490..2c90b53 100644 --- a/src/debug/netcoredbg/vscodeprotocol.cpp +++ b/src/debug/netcoredbg/vscodeprotocol.cpp @@ -282,14 +282,7 @@ HRESULT VSCodeProtocol::HandleCommand(const std::string &command, const json &ar { "launch", [this](const json &arguments, json &body){ std::vector args = arguments.value("args", std::vector()); args.insert(args.begin(), arguments.at("program").get()); - - std::string exe = GetExeAbsPath(); - std::size_t dirSepIndex = exe.rfind(DIRECTORY_SEPARATOR_STR_A); - std::string exeDir; - if (dirSepIndex != std::string::npos) - exeDir = exe.substr(0, dirSepIndex + 1); - - return m_debugger->Launch(exeDir + "corerun", args, arguments.value("stopAtEntry", false)); + return m_debugger->Launch("dotnet", args, arguments.value("stopAtEntry", false)); } }, { "threads", [this](const json &arguments, json &body){ HRESULT Status;