public static void DebugSessionLoop() { try { // 우선 VS Code와의 통신을 조립한다. // 디버기와의 통신은 launch 명령어 실행 이후에 조립한다. var debugSession = new DebugSession(); var cdp = new VSCodeDebugProtocol(debugSession); debugSession.toVSCode = cdp; cdp.Loop(Console.OpenStandardInput(), Console.OpenStandardOutput()); } catch (Exception e) { MessageBox.OK(e.ToString()); } }
// // This gets run as a new thread by the UI (WaitingUI.cs) public static void DebugSessionLoop() { try { // First, assemble communication with VS Code. // Communication with the debugger is assembled after executing the launch command. var debugSession = new DebugSession(); var cdp = new VSCodeDebugProtocol(debugSession); debugSession.toVSCode = cdp; toVSCode = cdp; cdp.Loop(Console.OpenStandardInput(), Console.OpenStandardOutput()); } catch (Exception e) { MessageBox.OK(e.ToString()); } }