/
smwwiki
/
OneScript_fork
Обзор
Документация
Войти
/
smwwiki
/
OneScript_fork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/VSCode.DebugAdapter/DebugeeFactory.cs
29 строк
912 B
EvilBeaver
Метод Attach для отладчика (начало)
31 май 2020, 11:36
31 май 2020, 11:36
bb5d323
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ using System; namespace VSCode.DebugAdapter { internal static class DebugeeFactory { public static DebugeeProcess CreateProcess(string adapterId, PathHandlingStrategy pathStrategy) { if (adapterId == "oscript") { return new ConsoleProcess(pathStrategy); } if (adapterId == "oscript.web") { return new ServerProcess(pathStrategy); } throw new ArgumentOutOfRangeException(nameof(adapterId), adapterId, "Unsupported debugger"); } } }